美好的一天,我是这个 Youtube GData api 的新手,我无法访问特定播放列表的视频列表。
我首先做的是获取特定用户的播放列表列表。它返回了这样的东西GDataEntryYouTubePlaylistLink 0x888ea20: {v:2.1 title:Playlist Title summary: contentSrc:https://gdata.youtube.com/feeds/api/playlists/PL5......92D127 etag:W/"D04N.....WhJVEU8." authors:1 categories:1 links:related,alternate,self id:tag:youtube.com,2008:user:MyYoutubeUser:playlist:PL5......92D127 countHint:7 unparsed:<media:group>}
我了解到 countHint 是该播放列表中的视频数量。现在,我想得到那些视频。
我尝试创建一个可以这样做的函数,但我不知道我将使用什么 FeedID:
GDataServiceGoogleYouTube *service = [self youTubeService];
NSString *feedID = kGDataYouTubeUserFeedIDPlaylists; //this was the feedID i used to get the list of playlist of a user
NSURL *feedURL = [GDataServiceGoogleYouTube youTubeURLForUserID:@"MyYoutubeUser"
userFeedID:feedID];
[service fetchFeedWithURL:feedURL
delegate:self
didFinishSelector:@selector(request:finishedLoading:error:)];