|
|
@@ -68,7 +68,7 @@
|
|
|
[super viewDidAppear:animated];
|
|
|
[self noEnablePanRightBack];
|
|
|
[self addKVOObserverFun];
|
|
|
- ksharedAppDelegate.supportScreenRotateType = YES;
|
|
|
+ //ksharedAppDelegate.supportScreenRotateType = YES;
|
|
|
}
|
|
|
|
|
|
- (void)viewDidDisappear:(BOOL)animated{
|
|
|
@@ -77,7 +77,7 @@
|
|
|
[self HandleSomethingByExitVC];
|
|
|
}
|
|
|
|
|
|
-#pragma mark
|
|
|
+#pragma mark 退出事件处理
|
|
|
-(void)HandleSomethingByExitVC
|
|
|
{
|
|
|
[UIApplication sharedApplication].idleTimerDisabled = NO;
|
|
|
@@ -91,7 +91,8 @@
|
|
|
|
|
|
[self enablePanRightBack];
|
|
|
[self removeKVOObserverFun];
|
|
|
- //ksharedAppDelegate.supportScreenRotateType = NO;
|
|
|
+ ksharedAppDelegate.supportScreenRotateType = NO;
|
|
|
+ ksharedAppDelegate.isPlayerScreenLandscapeType = NO;
|
|
|
|
|
|
[self removeNewIndicator];
|
|
|
if(_playerSecondTimer){
|
|
|
@@ -486,7 +487,7 @@
|
|
|
}
|
|
|
|
|
|
if(isLan){//保证竖屏
|
|
|
- [self hx_rotateToInterfaceOrientation:UIInterfaceOrientationPortrait];
|
|
|
+ [self player_rotateToInterfaceOrientation:UIInterfaceOrientationPortrait];
|
|
|
}
|
|
|
|
|
|
[self.navigationController popViewControllerAnimated:YES];
|
|
|
@@ -622,7 +623,7 @@
|
|
|
[self pauseStream];
|
|
|
|
|
|
if(isLan){//保证竖屏
|
|
|
- [self hx_rotateToInterfaceOrientation:UIInterfaceOrientationPortrait];
|
|
|
+ [self player_rotateToInterfaceOrientation:UIInterfaceOrientationPortrait];
|
|
|
}
|
|
|
|
|
|
//退出推流页
|
|
|
@@ -833,13 +834,13 @@
|
|
|
if(rotation == 0){//竖屏
|
|
|
//切换到竖屏
|
|
|
isLan = NO;
|
|
|
- [self hx_rotateToInterfaceOrientation:UIInterfaceOrientationPortrait];
|
|
|
+ [self player_rotateToInterfaceOrientation:UIInterfaceOrientationPortrait];
|
|
|
[self setPoMas_makeWithImageRate:curRate];
|
|
|
}
|
|
|
else if(rotation == 1){//横屏
|
|
|
//切换到横屏屏
|
|
|
isLan = YES;
|
|
|
- [self hx_rotateToInterfaceOrientation:UIInterfaceOrientationLandscapeRight];
|
|
|
+ [self player_rotateToInterfaceOrientation:UIInterfaceOrientationLandscapeRight];
|
|
|
[self setLanMas_makeWithImageRate:curRate];
|
|
|
}
|
|
|
|