Tuesday, April 9, 2013

[android help] how to play vimeo video using iframe in webview?

android - how to play vimeo video using iframe in webview? - Stack Overflow





















`public class MainActivity extends Activity {




@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
WebView wv=(WebView)findViewById(R.id.webView1);

wv.getSettings().setJavaScriptEnabled(true);
wv.getSettings().setAppCacheEnabled(true);
wv.getSettings().setDomStorageEnabled(true);

// how plugin is enabled change in API 8
if (Build.VERSION.SDK_INT < 8) {
wv.getSettings().setPluginsEnabled(true);
} else {
wv.getSettings().setPluginState(PluginState.ON);
}
String venkat="";
wv.loadData(venkat,"text/html","UTF-8");


}}`



after researching from google i have written the above code but it not working.in this no errors are occurred but when i click on the play button progress bar is displaying for sometime and then it disappears and display ply button again.. could anyone plz suggest me how to solve this problem.

















Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.










default







.

stackoverflow.comm

No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...