How to play youtube video in windows store app using c sharp
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Jan 12, 2014, 11:01 PM EST
You can play video using MediaElement as shown,
MediaOpened="Element_MediaOpened" MediaEnded="Element_MediaEnded"/>
Or you can set the source in code behind like,
myMedia.Source = new Uri(youtubeurl, UriKind.AbsoluteOrRelative);