html - Android 如何显示flash .swf文件?
PHP中文网
PHP中文网 2017-04-17 15:26:39
0
1
403

目前我的解决方法是使用WebView,通过加载html来实现。

html中就加了一个embed标签来加载.swf文件。

WebSettings setting = webView.getSettings(); setting.setJavaScriptEnabled(true); setting.setPluginState(PluginState.ON); setting.setAllowFileAccess(true) setting.setAllowFileAccessFromFileURLs(true); webView.loadUrl("file:///android_asset/flash.html")

但是一直显示"无法加载插件",是不是一定要装adobe flash插件?除此之外还有什么方法能显示flash?

PHP中文网
PHP中文网

认证0级讲师

reply all (1)
Peter_Zhu

You need Adobe Flashplayer support to play, that is, you need to install an Adobe Flashplayer on your machine. SWF can no longer keep up with the pace of the mobile era. In addition to needing plug-ins, it also depends on whether the device supports it. It does not necessarily matter if you have Flashplayer. can be played.

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!