ios - Quickblox webrtc video call receive method is not called -
quickblox webrtc video call receive method not called .i call accept call , can communicate while calling me not geting 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 called when user online make sure add in -
(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 called.
Comments
Post a Comment