相关疑难解决方法(0)

从iphone app在youtube上传视频

我想从我的iphone应用程序上传YouTube上的视频..我试过这个http://urinieto.com/2010/10/upload-videos-to-youtube-with-iphone-custom-app/ 但最后我收到错误Domain = com.google.GDataServiceDomain Code = 400"无法完成操作.(com.google.GDataServiceDomain错误400.)"UserInfo = 0x4d921f0 {}

谁能帮我.感谢名单!

我的代码

 NSString *devKey = [mDeveloperKeyField text];

    GDataServiceGoogleYouTube *service = [self youTubeService];
    [service setYouTubeDeveloperKey:devKey];

    NSString *username = [mUsernameField text];
    NSString *clientID = [mClientIDField text];

    NSURL *url = [GDataServiceGoogleYouTube youTubeUploadURLForUserID:username
                                                             clientID:clientID];

    // load the file data
    NSString *path = [[NSBundle mainBundle] pathForResource:@"YouTubeTest" ofType:@"m4v"]; 
    NSData *data = [NSData dataWithContentsOfFile:path];
    NSString *filename = [path lastPathComponent];

    // gather all the metadata needed for the mediaGroup
    NSString *titleStr = [mTitleField text];
    GDataMediaTitle *title = …
Run Code Online (Sandbox Code Playgroud)

iphone youtube-api ios

11
推荐指数
1
解决办法
4656
查看次数

标签 统计

ios ×1

iphone ×1

youtube-api ×1