|
|
@@ -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
|