【问题标题】:Quickblox webrtc video call receive method is not called未调用 Quickblox webrtc 视频通话接收方法
【发布时间】:2016-09-13 05:11:00
【问题描述】:

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];
 }

【问题讨论】:

  • 你添加了“[QBRTCClient.instance addDelegate:self];”
  • 是的,我在视图中添加它会出现 -(void)viewWillAppear:(BOOL)animated{ [QBRTCClient.instance addDelegate:self]; }
  • 你找到解决办法了吗?

标签: ios objective-c iphone quickblox


【解决方案1】:

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);
 }];
}

它将被调用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-28
    相关资源
    最近更新 更多