2013-07-28 24 views
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()); 

    } 

回答

0

沒有全屏按鈕和低分辨率視頻我我用這個試試

contentViewBorder.Width = 1305; 
      contentView.Width = 1305; 
      contentViewBorder.Height = 800; 
      contentView.Height = 800; 

      contentView.Margin = new Windows.UI.Xaml.Thickness(-520, -210, (490), 1500); 
相關問題