Android player iframe vimeo disappears

I have a WebView that downloads Vimeo videos perfectly and plays them, however, as soon as the video starts playing, the player controls (play / pause) disappear, and there seems to be no way to return them. Here is the code:

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", "");
+6
source share

Source: https://habr.com/ru/post/1015913/


All Articles