安卓iframe播放器控件



我想在我的android应用程序中播放嵌入式视频(而不是youtube视频(。我知道如何使用iframe,但我没有选择跳过。有没有任何库可以在安卓应用程序中轻松播放iframe视频?

这适用于我的

webviewWebView = (WebView) findViewById(R.id.webview_web_view);
webviewWebView.setWebChromeClient(new WebChromeClient());
webviewWebView.getSettings().setPluginState(WebSettings.PluginState.ON_DEMAND);
webviewWebView.getSettings().setJavaScriptEnabled(true);
String customHtml = "<iframe width="380" height="315" src="https://www.youtube.com/embed/videoseries?list=PLBRur06WH1SlYw3rIr051vPw442oBB50e" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>";
webviewWebView.loadData(customHtml, "text/html", "UTF-8");

最新更新