I am trying to play a Youtube video right from my simple WPF application.
I have investigated several ways to do that:
Using WebBrowser control In this case seems you just need to apply the Youtube video URL to
WebBrowser
source field and just make a little changes in the URL itself, like:Original URL = https://www.youtube.com/watch?v=xxxxxxx
Changed URL = https://www.youtube.com/v/xxxxxxxThe other approach just suggests to use ShockWave Flash object, which basically should have pretty the same result (video tutorial below)
I have tried both cases and seems that the solutions are old, as I get the following error:
So the question is:
Is there any way to simply play a youtube video in WPF app, with or without the described soultions. Or maybe I am doing something wrong. Thank you.