0
根據 embed youtube html5 player shows no fullscreen button爲什麼我不能在720HD中嵌入youtube或在windows 8 Webview中有全屏按鈕?
我應該可以得到全屏按鈕。但是,當我試圖嵌入YouTube中的WebView這是行不通的,那隻能說明一個基本的YouTube播放器在默認情況下
protected override void OnNavigatedTo(NavigationEventArgs e)
{
string videoID = "lP7SSJSj1NM";
string videoWidth = "800";
string videoHeight = "480";
string videoSrc = "http://www.youtube.com/embed/" + videoID + @"?autoplay=1&vq=hd720";
StringBuilder html = new StringBuilder();
html.Append(@"<body style=""padding:0; margin:0"" >");
html.Append(@"<iframe frameborder=""0"" style=""padding:0; margin:0"" width=""" + videoWidth + @""" height=""" + videoHeight + @""" src=" + videoSrc + " allowfullscreen=" + @"""1" + @"""></iframe>");
html.Append(@"</body>");
myWebView.NavigateToString(html.ToString());
}