Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/183.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从Android Webview本地播放SWF文件_Android_Webview_Flash - Fatal编程技术网

从Android Webview本地播放SWF文件

从Android Webview本地播放SWF文件,android,webview,flash,Android,Webview,Flash,在Android中观看播放.Flv视频的.Swf文件的正确方式是什么?我现在用来在web视图中启用Flash支持的代码是 WebView mWebView = (WebView) findViewById(R.id.webview); mWebView.getSettings().setJavaScriptEnabled(true); mWebView.getSettings().setAllowFileAccess(true); mWebView.getSett

在Android中观看播放.Flv视频的.Swf文件的正确方式是什么?我现在用来在web视图中启用Flash支持的代码是

    WebView mWebView = (WebView) findViewById(R.id.webview);
    mWebView.getSettings().setJavaScriptEnabled(true);
    mWebView.getSettings().setAllowFileAccess(true);
    mWebView.getSettings().setPluginsEnabled(true);
    mWebView.getSettings().setSupportZoom(false);
    mWebView.getSettings().setAppCacheEnabled(false);
    mWebView.getSettings().setAllowContentAccess(true);
    mWebView.getSettings().setCacheMode(mWebView.getSettings().LOAD_NO_CACHE);
对于HTML文件,我使用swfObject

问题是,我可以从市场上的第三方应用程序(如SWF Player)打开SWF文件。此外,我还可以通过直接调用从浏览器加载HTML页面file:///. 然而,当我使用我的webview加载它时,我被一个空白屏幕卡住了。有什么建议吗

谢谢。

您有:

<application android:hardwareAccelerated="true"...
mWebView.getSettings().setPluginsEnabled(true);