gpt4 book ai didi

ios - quickblox webrtc视频通话接收方法未被调用

转载 作者:行者123 更新时间:2023-11-29 00:41:15 25 4
gpt4 key购买 nike

未调用 Quickblox webrtc 视频通话接收方法。我调用某人,他接听电话,我们可以沟通,但当他调用我时,我没有接到那个电话。`

- (void)didReceiveNewSession:(QBRTCSession *)session userInfo:(NSDictionary *)userInfo {

if (self.session ) {

[session rejectCall:@{@"reject" : @"busy"}];
return;
}

self.session = session;

[QBRTCSoundRouter.instance initialize];

NSParameterAssert(!self.nav);

IncomingCallViewController *incomingViewController =
[self.storyboard instantiateViewControllerWithIdentifier:@"IncomingCallViewController"];
incomingViewController.delegate = self;
incomingViewController.session = session;
incomingViewController.usersDatasource = self.dataSource;

self.nav = [[UINavigationController alloc] initWithRootViewController:incomingViewController];
[self presentViewController:self.nav animated:NO completion:nil];
}

最佳答案

Quickblox webrtc 视频通话接收方法仅在用户在线时调用,因此请确保添加您的 -

(Void)ViewDidLoad{

[QBRequest logInWithUserLogin:@"xxxxxx"
password:@"xxxxx"
successBlock:^(QBResponse * _Nonnull response, QBUUser * _Nullable user)
{
}];
[[QBChat instance] connectWithUser:self.user completion:^(NSError * _Nullable error) {
NSLog(@"User%@",self.user);
}];
}

它将被调用。

关于ios - quickblox webrtc视频通话接收方法未被调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39462560/

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