Can't play videos in WebView using iframe tag?

I use the following data to display in WebView. These are the HTML tags along with the iframe related to the video.

Now the problem is when I click on it, it shows the play button, but cannot play the video.

Can this video be played inside WebViewor not?

<p></p><P> because of Jon’s pro-growth, business-friendly policies, Utah's economy expanded at more than triple the national rate and was named the best state for business by <EM>Forbes.</em><BR /><BR /><IFRAME height=241 src="http://player.vimeo.com/video/25349114" frameBorder=0 width=425></iframe></p><br />

<P>America needs a dose of the same medicine. Today, our nation has the second highest corporate tax rate in the developed world. We have convoluted and confusing regulations. 
<!--break--><!--break--><p></p>

when I try to run this url in android browser, it opens the video and plays this file perfectly, but why not in the iframe? http://player.vimeo.com/video/25349114

+5
source share
2 answers

The main thing is to enable browser plugins.

// how to enable the webview plugin changed in API 8
if (Build.VERSION.SDK_INT < 8) {
    mWebView.getSettings().setPluginsEnabled(true);
} else {
    mWebView.getSettings().setPluginState(PluginState.ON);
}

-

+3
WebView wv;
wv = (WebView) findViewById(R.id.mywebview);

wv.getSettings().setJavaScriptEnabled(true);
wv.getSettings().setBuiltInZoomControls(true);
wv.getSettings().setPluginsEnabled(true);

, flashplayer ...

+2

All Articles