|
|
@@ -74,16 +74,27 @@
|
|
|
[UIApplication sharedApplication].idleTimerDisabled = NO;
|
|
|
[[UIApplication sharedApplication] setStatusBarHidden:NO];
|
|
|
|
|
|
+ [self HandleSomethingByExitVC];
|
|
|
+}
|
|
|
+
|
|
|
+#pragma mark
|
|
|
+-(void)HandleSomethingByExitVC
|
|
|
+{
|
|
|
isExitType = YES;
|
|
|
- [_mediaStream disconnect];
|
|
|
- _mediaStream = nil;
|
|
|
+ if(_mediaStream){
|
|
|
+ [_mediaStream disconnect];
|
|
|
+ _mediaStream = nil;
|
|
|
+ }
|
|
|
|
|
|
[self enablePanRightBack];
|
|
|
[self removeKVOObserverFun];
|
|
|
//ksharedAppDelegate.supportScreenRotateType = NO;
|
|
|
|
|
|
[self removeNewIndicator];
|
|
|
- [_playerSecondTimer invalidate];
|
|
|
+ if(_playerSecondTimer){
|
|
|
+ [_playerSecondTimer invalidate];
|
|
|
+ _playerSecondTimer = nil;
|
|
|
+ }
|
|
|
_webRtcMsgMod = nil;
|
|
|
}
|
|
|
|
|
|
@@ -458,6 +469,8 @@
|
|
|
|
|
|
[self.navigationController popViewControllerAnimated:YES];
|
|
|
ksharedAppDelegate.supportScreenRotateType = NO;
|
|
|
+
|
|
|
+ [self HandleSomethingByExitVC];
|
|
|
}
|
|
|
|
|
|
#pragma mark 显示关闭投屏提示语
|
|
|
@@ -595,6 +608,8 @@
|
|
|
//与安卓保存一致 tabbar 退倒nas页
|
|
|
[ksharedAppDelegate.mainTabBar setSelectedIndex:0];
|
|
|
|
|
|
+ [self HandleSomethingByExitVC];
|
|
|
+
|
|
|
/*弹窗提示重启*/
|
|
|
//KWeakSelf
|
|
|
logoutAlertVC = [[ComontAlretViewController alloc] initWithTiTle:NSLocalizedString(@"single_sign_on_Tips_logout",nil)
|