问题
I tried this but it doesn't work:
webView.getSettings().setJavaScriptEnabled(true);
webView.loadUrl(String.valueOf("https://techx.pk/youtube-videos/"));
webView.setWebViewClient(new WebViewClient(){
public boolean shouldOverrideUrlLoading(WebView view, String url){
view.loadUrl(url);
return false;
}
});
It only plays a video but showing a black screen.
来源:https://stackoverflow.com/questions/58112959/youtube-videos-shown-black-screen-in-webview-when-click-on-play-button