我在冰山的icelink面临着一个问题。在我的应用程序中,我在安装应用程序后首次启动视频会议通话。成功建立连接后,当我们尝试使用示例应用程序中给出的功能断开呼叫时,我在 Leaveasync 中收到错误 [IceLink] ERROR [FM] 2018 / 06 / 13-21:57:40未能离开。 HTTP请求超时。和StopLocalmedia块未执行,因为我的Apps相机和麦克风未关闭。这仅在安装App后第一次发生。如果有人有解决方案,那么请告诉我如何解决这个问题。
[App instance].onDisconnect = [FMCallback callbackWithSingleAction:^(id errorDescription) {
NSLog(@"Here indisconnecting");
if (![App instance].disconnecting) {
[App instance].disconnecting = YES;
if ([(NSString*)errorDescription length] > 0) {
// [sdkContainerView alert:(NSString*)errorDescription];
[[[App instance] stopLocalMedia] thenWithResolveActionBlock:^(NSObject *o) {
dispatch_async(dispatch_get_main_queue(), ^{
[[App instance] cleanup];
// [weakSelf dismissViewControllerAnimated:NO completion:nil];
});
} rejectActionBlock:^(NSException *e) {
// [sdkContainerView alert:e.message];
[FMIceLinkLog errorWithMessage:@"Could not stop local media." ex:e];
}];
}
else {
NSLog(@"Here indisconnecting 1111");
[[[[App instance] leaveAsync] thenWithResolveActionBlock:^(NSObject *o) {
// here it should go
NSLog(@"Here the value becomes %@",o);
dispatch_async(dispatch_get_main_queue(), ^{
NSLog(@"Here indisconnecting 2222");
// [sdkContainerView dismissViewControllerAnimated:NO completion:nil];
});
}]
failWithRejectActionBlock:^(NSException *e) {
NSLog(@"Here indisconnecting 3333 %@",e.message); /// gives me error here
// [sdkContainerView alert:e.message];
[FMIceLinkLog errorWithMessage:@" Failedto leave." ex:e];
[App instance].disconnecting = NO;
}];
NSLog(@"Here indisconnecting 6666");
//the below code is not getting executed
[[[[App instance] stopLocalMedia] thenWithResolveActionBlock:^(NSObject *o) {
dispatch_async(dispatch_get_main_queue(), ^{
NSLog(@"Here indisconnecting 4444");
[[App instance] cleanup];
});
}]
failWithRejectActionBlock:^(NSException *e) {
NSLog(@"Here indisconnecting 5555");
// [weakSelf alert:e.message];
[FMIceLinkLog errorWithMessage:@"Failed to stop local media." ex:e];
}];
}
}
}];