|
|
@@ -428,9 +428,11 @@
|
|
|
tryRelinkNum = 0;
|
|
|
_didReportWebRtcFailType = YES;
|
|
|
|
|
|
- [[addLogObject shareInstance] gotoAddLogFunBySuccess:^(NSString * _Nonnull key) {
|
|
|
- [[webRtcManager shareManager] reportWebRtcRePoportTypeIsChannel:YES withStats:nil withSessionId:self->_webRtcPlayerSessionId withLogKey:key];
|
|
|
- }];
|
|
|
+ globalBlock(^{
|
|
|
+ [[addLogObject shareInstance] gotoAddLogFunBySuccess:^(NSString * _Nonnull key) {
|
|
|
+ [[webRtcManager shareManager] reportWebRtcRePoportTypeIsChannel:YES withStats:nil withSessionId:self->_webRtcPlayerSessionId withLogKey:key];
|
|
|
+ }];
|
|
|
+ });
|
|
|
|
|
|
|
|
|
//[self showLinkPhoneErrorFun];
|
|
|
@@ -1165,12 +1167,13 @@
|
|
|
case RTCIceConnectionStateFailed:
|
|
|
case RTCIceConnectionStateDisconnected:
|
|
|
case RTCIceConnectionStateClosed:{
|
|
|
- if(!_didReportWebRtcFailType && state != RTCIceConnectionStateDisconnected){//还没上报过通道链接情况
|
|
|
+ if(!_didReportWebRtcFailType && state == RTCIceConnectionStateFailed){//还没上报过通道链接情况
|
|
|
_didReportWebRtcFailType = YES;
|
|
|
-
|
|
|
- [[addLogObject shareInstance] gotoAddLogFunBySuccess:^(NSString * _Nonnull key) {
|
|
|
- [[webRtcManager shareManager] reportWebRtcRePoportTypeIsChannel:YES withStats:nil withSessionId:self->_webRtcPlayerSessionId withLogKey:key];
|
|
|
- }];
|
|
|
+ globalBlock(^{
|
|
|
+ [[addLogObject shareInstance] gotoAddLogFunBySuccess:^(NSString * _Nonnull key) {
|
|
|
+ [[webRtcManager shareManager] reportWebRtcRePoportTypeIsChannel:YES withStats:nil withSessionId:self->_webRtcPlayerSessionId withLogKey:key];
|
|
|
+ }];
|
|
|
+ });
|
|
|
}
|
|
|
//链接关闭
|
|
|
[self relinkWebRtcFun];
|