Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.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
Iframe视频嵌入链接在少数android设备上不起作用_Android_Video_Iframe_Webview - Fatal编程技术网

Iframe视频嵌入链接在少数android设备上不起作用

Iframe视频嵌入链接在少数android设备上不起作用,android,video,iframe,webview,Android,Video,Iframe,Webview,我有一个Iframe链接: <div style="position:relative; padding-bottom:56.25%; overflow:hidden;"><iframe src="html link here" width="100%" height="100%" frameborder="0" scrolling="auto" allowfullscreen style="position:absolute;"></iframe></

我有一个Iframe链接:

<div style="position:relative; padding-bottom:56.25%; overflow:hidden;"><iframe src="html link here" width="100%" height="100%" frameborder="0" scrolling="auto" allowfullscreen style="position:absolute;"></iframe></div>

2017年,自2012年以来,FlashPlayer就被Android弃用了

我强烈建议您不要考虑任何其他FlashPlayer解决方案,因为不支持FlashPlayer的Android设备数量只会增加


找一个HTML5播放器来代替……

要纠正这个问题,您可以使用具有以下结构的HTML5播放器

任何logcat提示??
mWebViewClient = new myWebViewClient();
    webView.setWebViewClient(mWebViewClient);

    mWebChromeClient = new myWebChromeClient();
    webView.setWebChromeClient(mWebChromeClient);

    webView.getSettings().setJavaScriptEnabled(true);
    webView.getSettings().setAppCacheEnabled(true);
    webView.getSettings().setSaveFormData(true);
    webView.getSettings().setDomStorageEnabled(true);
    webView.getSettings().setAllowContentAccess(true);
    webView.getSettings().setSupportMultipleWindows(true);
    webView.getSettings().setAllowFileAccessFromFileURLs(true);
    webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);

    webView.loadDataWithBaseURL(baseUrl,data_html,"text/html","utf-8",historyUrl);