Playing YouTube streams?

Jul 9, 2014 at 6:19 AM
I'm trying to play YouTube streams in my WPF program using WPF MediaKit's MediaUriElement. I've noticed that the url should be something like this:

Source="http://www.youtube.com/watch?v=OyNqNJUAuh4&hd=1?ext=.3gpp"

So I extract the extension from the YouTubeInfo and construct such a string.

However the MediaUriElement doesn't cooparate with that... (I have the K-Lite Codec Pack installed)

Does anybody know how it can be done?

Idan