Parcourir la source

1.退出云机限制重连

huangxiaodong il y a 1 an
Parent
commit
2f6b72f6e1

+ 7 - 0
创维盒子/双子星云手机/webRtc/webRtcPlayerViewController.m

@@ -25,6 +25,8 @@
     long lasPacketsReceived;
     //记录上次 总丢包数据
     long lastAlllostData;
+    
+    BOOL isExitType;//退出云机
 }
 @property (nonatomic, copy)   NSTimer      *playerSecondTimer; // 定时器-控制按钮
 @property (nonatomic, assign) RTCIceConnectionState linkState;
@@ -74,6 +76,7 @@
     [UIApplication sharedApplication].idleTimerDisabled = NO;
     [[UIApplication sharedApplication] setStatusBarHidden:NO];
     
+    isExitType = YES;
     [_mediaStream disconnect];
     _mediaStream = nil;
     
@@ -179,6 +182,10 @@
 //        return;
 //    }
     
+    if(isExitType){
+        return;
+    }
+    
     HLog(@"发起重连 ......")
     
     KWeakSelf