Search code examples
c#wpfyoutubeembedmediaelement

how do I embed a youtube video into a WPF MediaElement and save the video?


Is there a way to embed a youtube video into a MediaElement and save the video? I know that once you have an object inside your application you can have some sort of control over it(I think). If I'm correct, is it possible to save the youtube video once it is embedded inside the MediaElement? Thanks.


Solution

  • Youtube videos are not available as files, as they are streams. that makes it a bit hard to save them (Actually you can, JDownloader does that, but that's infringement of YT terms), but for playback, check this guide.