【问题标题】:iOS YouTube api v3: uploaded video urliOS YouTube api v3:上传的视频网址
【发布时间】:2015-01-21 13:14:19
【问题描述】:

我想获取 YouTube 上传视频的 URL。可以使用(GDataEntryYouTubeVideo *)videoEntry;api-v2 中获取 YouTube 上传的视频 URL。 谁能告诉我如何在 api-v3

中做同样的事情

【问题讨论】:

    标签: ios youtube youtube-api


    【解决方案1】:

    按照这个sample中的方法:

    - (void)uploadPrivateVideoWithTitle:(NSString *)title description:(NSString *)description commaSeperatedTags:(NSString *)tags andPath:(NSString *)path
    

    【讨论】:

      【解决方案2】:

      没有直接获取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];
      }
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2014-12-12
        • 2012-10-07
        • 2015-09-20
        • 2015-11-23
        • 2019-01-28
        • 2017-06-14
        • 2014-10-13
        • 2014-11-03
        相关资源
        最近更新 更多