GetVideoUriAsync call

Apr 29, 2014 at 6:44 PM
MyToolkit.Multimedia.YouTubeUri ytVideoUri = await MyToolkit.Multimedia.YouTube.GetVideoUriAsync(YouTubeVideoId, MyToolkit.Multimedia.YouTubeQuality.Quality480P, MyToolkit.Multimedia.YouTubeQuality.Quality480P);

the above will return null always. In order to get the Video Uri you have to use different resolutions for min and max qualities or just pass max quality as the argument since one of the overloaded method accepts max quality along with YouTube Video Id. Just Saying

MyToolkit.Multimedia.YouTubeUri videoUri = await MyToolkit.Multimedia.YouTube.GetVideoUriAsync(YouTubeVideoId, MyToolkit.Multimedia.YouTubeQuality.Quality480P);
Apr 29, 2014 at 8:01 PM
Can you give me a sample youtube id?
Apr 29, 2014 at 8:14 PM




Sent from Windows Mail

Apr 30, 2014 at 8:00 AM
This video has no 480p stream with video and audio, there's only a stream with video-only. This is why GetVideoUriAsync returns null.

If you want to play the 480p stream then you have to call GetUrisAsync() get the video and audio stream separately and play them simultaneously in your app.

Here is the unit test:
Apr 30, 2014 at 1:06 PM
Thank you, thank you.

Sent from my Windows Phone

Marked as answer by govinda11 on 4/30/2014 at 7:19 PM