我有一个WebView可以很好地加载Vimeo视频并播放它们,但是,一旦视频开始播放,播放器控制(播放/暂停)消失,似乎没有办法让它们恢复。这是代码:
videoView = (WebView) findViewById(R.id.videoView);
String videoHtml = "<iframe src=\"https://player.vimeo.com/video/37551417\" width=\"300\" height=\"200\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>";
videoView.getSettings().setJavaScriptEnabled(true);
videoView.loadDataWithBaseURL("", videoHtml , "text/html", "UTF-8", "");