如何将youtube视频嵌入WebBrowser控件中

编程入门 行业动态 更新时间:2024-10-14 04:24:07
本文介绍了如何将youtube视频嵌入WebBrowser控件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好!

推荐答案

好吧,据我所知,MS曾针对阻止某些WP7请求的Google(拥有Youtube)提出投诉. 如果您在已加载事件中执行以下操作:

webBrowser1.NavigateToString( Well, as far as I know MS filed a complaint against Google (who owns Youtube) for blocking some WP7 requests. If you do something like this in the loaded-event:

webBrowser1.NavigateToString(

"< body>< iframe宽度='800'高度='800'src ='http ://www.u2u.be'frameborder ='0'allowfullscreen></iframe>< body>< );

"<body><iframe width='800' height='800' src='www.u2u.be' frameborder='0' allowfullscreen></iframe><body>");

webBrowser1.NavigateToString(

webBrowser1.NavigateToString(

"< body>< iframe宽度='800'高度='800'src ='http :// www.youtube/embed/O6WLkyxySA0 'frameborder ='0'allowfullscreen></iframe><正文>" ); 那么您最终只会得到一个黑色正方形,而没有视频. 这也是WP7 Youtube-app具有高吸吮水平的原因...

"<body><iframe width='800' height='800' src='www.youtube/embed/O6WLkyxySA0' frameborder='0' allowfullscreen></iframe><body>"); then you simply end up with a black square, and no video. That's also the reason why the WP7 Youtube-app has a high sucking-level...

更多推荐

如何将youtube视频嵌入WebBrowser控件中

本文发布于:2023-11-05 18:38:22,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1561563.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   如何将   视频   youtube   WebBrowser

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!