This project is read-only.

YouTube GetVideoUriAsync Returns Null & GetUrisAsync Return Null

Sep 28, 2014 at 10:38 AM

First of all I love this YouTube api, it's working really well in my WinRT Universal App.

But I'm having a problem with a particular video.

I extract the VideoID from this link :

and then call GetVideoUriAsync, at this point I want the lowest quality/smallest video uri available.
// get video uri
 var YouTubeUri = await YouTube.GetVideoUriAsync(VideoId, YouTubeQuality.QualityLow);
The call returns null, so I try this to see what's available, but it also return no items.
// get all video uris
YouTubeUri[] AllYouTubeUris = await YouTube.GetUrisAsync(VideoId);
A call to get thumbnail images works.
 // no video uris available, so get thumbnail image
Uri photoUrl = YouTube.GetThumbnailUri(VideoId, YouTubeThumbnailSize.Medium);
The code is working on loads of other VideoID's but not this one??

Can you help my solve this puzzle??


Sep 28, 2014 at 10:53 AM
I think I know what the problem might be.

It's not a static video, as in an .mp4 file, it's a link to a live streaming video??

That would explain why there is no uri to .mp4??

Will update this post when I resolve it!

Feedback still very welcome though!
Oct 6, 2014 at 9:31 PM
What did you find out?
Oct 7, 2014 at 12:41 PM
It was a live streaming event, so no actual .mp4 file to play.

I don't know how to extract the 'live stream' url from the web page content, so I have had to leave it there and only support normal youtube playing.

Shame, if anyone knows how to extract and then live stream these, that would be mega cool to have!!
Apr 26, 2015 at 3:12 AM
Edited Apr 26, 2015 at 3:12 AM
if this issue has been fixed, please let me know! thank you in advance.