我一直在尝试使用gdata Objective-c检索youtube视频的描述。我已经能够获得标题,但我如何获得描述?
标题代码:
GDataEntryBase *entry = [[feed entries] objectAtIndex:indexPath.row];
NSString *title = [[entry title] stringValue];有什么想法吗?
发布于 2013-01-19 13:48:22
Objective-C GData库中YouTube视频的类应该是GDataEntryYouTubeVideo,而不是GDataEntryBase。
但是旧的基于XML的GData库不再适合与YouTube应用编程接口一起使用。应该改用newer JSON-based library。JSON API中对视频的描述是有说明的here。
发布于 2013-08-29 05:09:07
NSString *description=[(GDataEntryYouTubeVideo *)entry mediaGroup].mediaDescription.stringValue;https://stackoverflow.com/questions/14410267
复制相似问题