Playing YouTube streams?

Jul 9, 2014 at 7: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:


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?