我想得到YouTube上传的视频的网址。可以使用YouTube在api-v2中使用(GDataEntryYouTubeVideo *)videoEntry;获取上传的视频URL。有谁能告诉我如何在api-v3中做同样的事?
发布于 2015-02-05 11:29:32
没有直接的方式得到url,以下是答案!
self.uploadFileTicket = [service executeQuery:query completionHandler:^(GTLServiceTicket *ticket,GTLYouTubeVideo *uploadedVideo,NSError *error) {
NSString *videoURL = [NSString stringWithFormat:@"%@%@", @"http://www.youtube.com/watch?v=", uploadedVideo.identifier];
}发布于 2015-01-22 16:20:11
遵循这个示例中的方法:
- (void)uploadPrivateVideoWithTitle:(NSString *)title description:(NSString *)description commaSeperatedTags:(NSString *)tags andPath:(NSString *)pathhttps://stackoverflow.com/questions/28068179
复制相似问题