简体   繁体   中英

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. `

- (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 -

(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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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