Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:

C#
private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            myBrowser.Navigate(new Uri("http://www.netflix.com"));
        }

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!
Posted

1 solution

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.
 
Share this answer
 
Comments
Adam7869 16-Nov-11 7:59am    
Hi Mark,

Thank you for the excerpt, I should have mentioned in my original post that I found that post and already tried those steps. If I delete that file it will buffer 98% of the video before it gives me the error. After the file is there it typically gives me the error much earlier.

It works perfectly in IE. Is there some fundamental difference between IE and this control?
Mark Salsbery 16-Nov-11 11:27am    
I don't know what the differences are but I'm sure there's many differences between IE and the browser control.

Netflix's media element may require something that's not available in the control...can you stream video to a regular MediaElement in your Silverlight app?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900