私は、vimeoビデオを再生する必要があるAndroidアプリケーションを開発しています。ビデオは URL の形式で提供されます。にロードしたいwebview
。試してみましたが、動画が再生されません。動画の静止画は撮れたのですが再生されず、
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");
誰かが私がどこで間違ったのか教えてもらえますか? または Vimeo ビデオは Android で再生できません。Android用のvimeoプレーヤープラグインやフラッシュプレーヤーのようなものはありますか、それともこの問題の他の解決策を提案できますか?