Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
修复Youtube视频加载C#Webbrowser?_C#_Video_Browser_Youtube_Load - Fatal编程技术网

修复Youtube视频加载C#Webbrowser?

修复Youtube视频加载C#Webbrowser?,c#,video,browser,youtube,load,C#,Video,Browser,Youtube,Load,因此,我让我的应用程序使用列表中的IP地址加载网页,并加载Youtube视频。问题是它加载为基本html,看起来很糟糕。我在谷歌和雅虎等其他网站上试用过,图像和所有内容都加载正确。下面是我用来加载页面的内容: HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(textBox1.Text); webRequest.Proxy = new WebProxy(finalList[proxi

因此,我让我的应用程序使用列表中的IP地址加载网页,并加载Youtube视频。问题是它加载为基本html,看起来很糟糕。我在谷歌和雅虎等其他网站上试用过,图像和所有内容都加载正确。下面是我用来加载页面的内容:

            HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(textBox1.Text);
        webRequest.Proxy = new WebProxy(finalList[proxies]);

        HttpWebResponse response = (HttpWebResponse)webRequest.GetResponse();
        Stream receiveStream = response.GetResponseStream();

        webBrowser1.DocumentStream = receiveStream;

您知道如何正确加载页面吗?

您可能需要在
中添加
。您不能这样使用youtube,因为yiz需要在web浏览器中运行播放器。尝试将一个页面加载到浏览器中,该页面包含嵌入播放器的行,如视频页面中所述(带有
的内容)