I need to fetch the playlist for specific username.
[NSString stringWithFormat:@"http://gdata.youtube.com/feeds/api/users/%@/playlists?alt=json&v=2&orderby=published&client=ytapi-youtube-profile",strUserName];
I use the above URl to fetch the JSON feeds for the username specified. Now when I parse this I get a list of playlist under the key “entry” which happens to be the array of playlist publicly available. To fetch all videos in specific playlist I again use a formatted URL like
[NSString stringWithFormat:@"http://gdata.youtube.com/feeds/api/playlists/%@?alt=json&v=2",currentPlayList.strPlayListId];
where currentPlayList.strPlayListId is actually the playlist id provided by youtube. The actual problem is to show the youtube video on iphone without exiting the application so I have used this method
Now passing the video ID (fetched from the playlist data as JSON) in URL
NSString* mediaURL = [NSString stringWithFormat:@"http://www.youtube.com/watch?v=%@",video.strMediaId];
where video.strMediaId is the video id of the video I wish to play results in Error of “This movie format is not supported” and it happens for all the videos.I have tried using all the links that are fetched under video details from youtube. There are similar unanswered post for this. Any help/comments will be appreciated to fix the issue ?
That has nothing to do with the iPhone. When people post videos to YouTube they have to allow it to be viewed on mobile devices. If they don’t you’ll get that message.
You can also get that message if there was a loss of signal or something similar while downloading the video. On those cases, rerunning the video usually works after a few tries.
Also, if the video has been recently uploaded, and the mobile version hasn’t been processed yet, you’ll get that message.
The only thing I can suggest is to make sure you have a strong, fast WiFi connection and see if the problem still manifests itself.