title: "Format not supported Error" While Playing youtube video within iphone application
body: <p>I need to fetch the playlist for specific username.</p>
  
  <pre><code>[NSString stringWithFormat:@"http://gdata.youtube.com/feeds/api/users/%@/playlists?alt=json&amp;v=2&amp;orderby=published&amp;client=ytapi-youtube-profile",strUserName];
  </code></pre>
  
  <p>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</p>
  
  <pre><code>[NSString stringWithFormat:@"http://gdata.youtube.com/feeds/api/playlists/%@?alt=json&amp;v=2",currentPlayList.strPlayListId];
  </code></pre>
  
  <p>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 <a href="http://iphoneincubator.com/blog/audio-video/how-to-play-youtube-videos-within-an-application" rel="nofollow noreferrer">method</a></p>
  
  <p>Now passing the video ID (fetched from the playlist data as JSON) in URL </p>
  
  <pre><code>NSString* mediaURL =    [NSString stringWithFormat:@"http://www.youtube.com/watch?v=%@",video.strMediaId];
  </code></pre>
  
  <p>where <strong>video.strMediaId</strong> is the video id of the video I wish to play results in Error of "<strong>This movie format is not supported</strong>" 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 <a href="https://stackoverflow.com/questions/4315609/movie-format-not-supported-on-iphone-with-youtube-player-in-a-webview">unanswered</a> post for this. Any help/comments will be appreciated to fix the issue ?</p>