user1599960
user1599960

Reputation:

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.

Upvotes: 0

Views: 9252

Answers (2)

user2186481
user2186481

Reputation: 11

You can use webcontrol for it. set the source property to use the embed link of the video. it will work fine.

<WebBrowser Source="https://www.youtube-nocookie.com/embed/W152nHe9rkM?rel=0&amp;showinfo=0" />

Upvotes: 1

Sebastian Edelmeier
Sebastian Edelmeier

Reputation: 4157

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.

Upvotes: 1

Related Questions