I created a Windows Store app with C# and XAML to playback YouTube videos but since YouTube shutdown their Data API v2, my app fails playing videos.
What should I do to play videos with Data API v3?
I have been using the Microsoft Player Framework with this code:
<mmppf:MediaPlayer x:Name="videoElement" VerticalAlignment="Top" Grid.Column="1" Width="Auto" Height="Auto" IsFullScreenVisible="True" IsFullScreenChanged="videoElement_IsFullScreenChanged" MediaFailed="videoElement_MediaFailed" />
var url = await YouTube.GetVideoUriAsync("aMbM7dSCHEk", YouTubeQuality.Quality1080P); videoFile = url.Uri; if (videoFile != null) videoElement.Source = videoFile;