WPF WebBrowser控件和Netflix [英] WPF WebBrowser Control and Netflix
问题描述
我想使用WebBrowser在WPF应用程序中进行Netflix流传输.当我在WebBrowser控件中尝试该程序时,开始流式传输时出现以下Netflix错误:
N8156-6020
当直接在IE中流式传输Netflix时,我没有此错误,因此我认为它与WPF有关.现在的代码仅由XAML中的WebBrowser和:
I would like to do Netflix streaming in my WPF app using a WebBrowser. When I try it in the WebBrowser control I get the following Netflix error when I begin streaming:
N8156-6020
I don''t have this error when streaming Netflix in IE directly, so I think it is WPF related. The code right now just consists of a WebBrowser in the XAML and:
private void Window_Loaded(object sender, RoutedEventArgs e)
{
myBrowser.Navigate(new Uri("http://www.netflix.com"));
}
Netflix网站加载正常,当我尝试流式传输时,它只会给我以上错误.
有谁知道解决此问题的方法,或者我可以在WPF应用程序中流式传输netflix电影的另一种方法?
The Netflix site loads fine, it just gives me the above error when I try to stream.
Does anyone know a way around this, or another way I could stream netflix movies in the WPF application?
Thanks!
推荐答案
流在浏览器中有效,是吗?
这是从错误代码中搜索的帖子摘录...
错误= N8156-6020
关于Silverlight的问题:
在桌面左下角转到开始"
单击运行
将其输入运行框%allusersprofile%",不加引号,仅在引号内输入信息(必须输入%)
双击此目录Application Data
双击此目录Microsoft
双击此目录Playready
查找此文件:: mspr.hds(删除此文件)
关闭视窗
重新启动Netflix…Netflix浏览器将创建一个新的"mspr.hds"文件,并且Netflix现在可以正常工作.
Streaming works in browser(s), yes?
Here''s a post excerpt from a search on the error code...
Error = N8156-6020
Something about a problem with Silverlight:
Go to START on desktop lower left
Click on Run
enter this into Run Box "%allusersprofile%" no quotes, just info inside quotes (% must be entered)
Double Click on this directory Application Data
Double Click on this directory Microsoft
Double Click on this directory Playready
find this file:: mspr.hds (delete this file)
Close window
restart Netflix … A new "mspr.hds" file will be created by Netflix browser and Netflix will now work.
这篇关于WPF WebBrowser控件和Netflix的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!