Prevent Flash Player fault in WebView, as is done by the Android Browser

假装没事ソ 提交于 2019-12-24 00:45:09

问题


I'm loading .swf files into a WebView directly using webView.loadUrl("http://whatever.com/file.swf");. It works perfectly in the vast majority of cases.

When loading a few specific swf files on certain devices, though, shortly after the Flash media begins to be displayed, my app closes with a Signal 11 fault caused by the Flash Player plugin. Example LogCat dump here. No Exception is thrown. The same thing happens if I load those files into the xScope browser.

When loading them into Dolphin Browser or the default Android Browser, however, shortly after the media begins to be displayed, the following is printed to LogCat:

05-31 18:13:15.498: DEBUG/FONT(9183): WARNING: **************************** Detect FLEngine error 1 ****************************
05-31 18:13:15.558: DEBUG/(9183): ---------------------------------------------------------------> call AudioTrack stop()

and an error icon is displayed on-screen:

No SIGSEGV fault occurs, and the browser is not terminated.


Does anyone know how I could do the exact same thing? Prevent the Flash Player plugin from causing the SIGSEGV fault, and simply handle the error myself, without the app being terminated? Any help would be greatly appreciated.


回答1:


I see in your logcat output that the crash occurs in libflashlite.so. You should be using real Flash 10.3 or higher, not Flash Lite. The Flash player is available on the Android Market now.



来源:https://stackoverflow.com/questions/6185407/prevent-flash-player-fault-in-webview-as-is-done-by-the-android-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!