最佳答案
您可以使用webview播放YouTube视频.
原文链接:https://www.f2er.com/android/431039.html string html=@"viewmode=true;
settings.JavaScriptCanOpenWindowsAutomatically=true;
settings.DomStorageEnabled=true;
settings.SetRenderPriority(WebSettings.RenderPriority.High);
settings.BuiltInZoomControls = false;
settings.JavaScriptCanOpenWindowsAutomatically=true;
myWebView.SetWebChromeClient(new WebChromeClient());
settings.AllowFileAccess = true;
settings.SetPluginState(WebSettings.PluginState.On);
myWebView.LoadDataWithBaseURL(null,html,"text/html","UTF-8",null);
在清单文件中添加Internet权限并启用hardwareAccelerated =“true”.请关注我的博客文章以获取更多详细信息:http://appliedcodelog.blogspot.in/2015/09/how-to-play-youtube-video-using-webview.html