如何使用来自 youtube 的 gdata 获取单个视频信息。我知道我可以使用此代码获取播放列表:但是该代码无法获取单个视频的数据
NSURL *blogURL = [NSURL URLWithString:@"https://gdata.youtube.com/feeds/api/playlists/PL85E8F3CC22BCEDC6?v=2&alt=jsonc"];
NSData *jsonData = [NSData dataWithContentsOfURL:blogURL];
NSError *error = nil;
NSDictionary *dataDictionary = [NSJSONSerialization JSONObjectWithData:jsonData options:0 error:&error];
NSDictionary *data1 = [dataDictionary objectForKey:@"data"];
NSDictionary *item = [data1 objectForKey:@"items"];
for (NSDictionary *video in item) {
NSDictionary *title = [video objectForKey:@"video"];
NSArray *titleArray = [title objectForKey:@"title"];
NSLog(@"%@",titleArray);
NSString*t = [title objectForKey:@"title"];
NSLog(@"Title:%@", t);
...
}
但我不知道如何获取单个视频。任何帮助将不胜感激...谢谢...