gpt4 book ai didi

ios - "The user is blocked from live streaming."(域=com.google.GTLRErrorObjectDomain代码=403)

转载 作者:行者123 更新时间:2023-11-28 23:34:17 28 4
gpt4 key购买 nike

当我尝试执行插入广播的请求时,我收到错误消息:

Error Domain=com.google.GTLRErrorObjectDomain Code=403 "The user is blocked from live streaming."UserInfo={GTLRStructuredError=GTLRErrorObject 0x28027ad30: {code:403errors:[1] message:"The user is blocked from live streaming."},NSLocalizedDescription=The user is blocked from live streaming.}

我今天开始收到此错误。在此之前,一切都运行良好。我已经在多个帐户上进行了测试,但没有任何运气。

代码:

GTLRYouTube_LiveBroadcastSnippet *broadcastSnippet= [[GTLRYouTube_LiveBroadcastSnippet alloc] init];
[broadcastSnippet setTitle:title];
[broadcastSnippet setScheduledStartTime:[GTLRDateTime dateTimeWithDate:self.beginOfStream]]; // current date + 1 minute.
[broadcastSnippet setScheduledEndTime:[GTLRDateTime dateTimeWithDate:[NSDate dateWithTimeIntervalSinceNow:80000]]];

GTLRYouTube_LiveBroadcastStatus *status = [[GTLRYouTube_LiveBroadcastStatus alloc] init];
[status setPrivacyStatus:[StreamSettings youtubeStringForPrivacyStatus:[privacyStatus intValue]]];

GTLRYouTube_LiveBroadcastContentDetails *details = [self streamDetailsWith:latency];

GTLRYouTube_LiveBroadcast *broadcast = [[GTLRYouTube_LiveBroadcast alloc] init];
[broadcast setKind:@"youtube#liveBroadcast"];
[broadcast setSnippet:broadcastSnippet];
[broadcast setStatus:status];

GTLRYouTubeQuery_LiveBroadcastsInsert *query = [GTLRYouTubeQuery_LiveBroadcastsInsert queryWithObject:broadcast
part:@"id, snippet, contentDetails,status"];
GTLRYouTubeService *service = self.youTubeService;
__strong id <YouTubeHelperDelegate> strongDelegate = self.delegate;
[service executeQuery:query completionHandler:^(GTLRServiceTicket *ticket,
GTLRYouTube_LiveBroadcast *returnedBrocast,
NSError *error) {
if (error) {
NSLog(@"%@", error); //Here is place I got an error
}
}];

最佳答案

如果登录用户的订阅者数量不超过 1000 个,则他无法使用移动应用程序进行直播,如链接中所述:

https://support.google.com/youtube/answer/2853834?hl=en

关于ios - "The user is blocked from live streaming."(域=com.google.GTLRErrorObjectDomain代码=403),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55542417/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com