I am developing a android application in which, i have to play a vimeo video. Video is given in the form of an URL. I want to load it in a webview
. I tried it, but the video is not playing. I got a still picture of video, but it is not playing,
videoPlayer = (WebView) findViewById(R.id.videoPlayer);
WebSettings webViewSettings = videoPlayer.getSettings();
webViewSettings.setJavaScriptCanOpenWindowsAutomatically(true);
webViewSettings.setJavaScriptEnabled(true);
webViewSettings.setPluginsEnabled(true);
webViewSettings.setBuiltInZoomControls(true);
webViewSettings.setPluginState(PluginState.ON);
videoPlayer.loadData("<iframe src=\</**HERE COMES VIDEO LINK*/>width=\"1280\"
height=\"720\" frameborder=\"0\"
webkitAllowFullScreen mozallowfullscreen
allowFullScreen></iframe>", "text/html", "utf-8");
can anyone tell me where i gone wrong? or Vimeo video cannot be played on Android. Is there any vimeo player plugin or anything like flash player for Android or can anyone suggest me any other solution for this problem?