문제

I am trying to play one SWF (flash) file in my application deployed on Android 4.2.2. When I save the file on file system, and open it with browser, it works well. But when I try to open the same in webview in my application, it does not play the swf. It just shows a broken file type small image. I have searched stack for the proper answer but any answer I found here is very old and not working for me, this must be because of the non-support of swf on new android version. I have also tried after installing the old flash player, but it shows just the first frame of swf.

도움이 되었습니까?

해결책

webview.getSettings().setPluginsEnabled(true);

Credits to joren: Load an SWF into a WebView

다른 팁

It sounds like you need an embedded flash player that plays the SWF rather than simply embedding the SWF. I haven't flashed around in a while now and certainly don't do it on Android but that's my immediate thought. (EDIT - The other answer here nailed it: plugin)

Seems like installing Adobe Air player on device is the only solution. Please suggest if any better way is available.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top