简体   繁体   English

Quickblox WebRTC视频通话接收方法未调用

[英]Quickblox webrtc video call receive method is not called

Quickblox webrtc video call receive method is not called .I am call to someone he accept the call and we can communicate but while he is calling me i am not geting that call. 我没有打电话给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];
 }

The Quickblox webrtc video call receive method only called when the user is online so make sure you add in Your - 仅当用户在线时才调用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);
 }];
}

It will be called. 它将被调用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM