Commit 628ff3e3b6a4e10d1510e02fdb87fc192cfa7a24

Authored by yanglingyu
1 parent 371ac976

非视频不转屏

CNLiveScioLive/Pages/Live/Controller/VideoPlayBackViewController.m
@@ -677,10 +677,7 @@ @@ -677,10 +677,7 @@
677 [super didReceiveMemoryWarning]; 677 [super didReceiveMemoryWarning];
678 } 678 }
679 - (BOOL)shouldAutorotate { 679 - (BOOL)shouldAutorotate {
680 -// if (![[[NSUserDefaults standardUserDefaults] objectForKey:@"ZXVideoPlayer_DidPlayBack"] boolValue]) {  
681 -// return [[[NSUserDefaults standardUserDefaults] objectForKey:@"ZXVideoPlayer_DidPlayBack"] boolValue];  
682 -// }  
683 - return ![[[NSUserDefaults standardUserDefaults] objectForKey:@"ZXVideoPlayer_DidLockScreen"] boolValue]; 680 + return isPlay;
684 } 681 }
685 - (UIInterfaceOrientationMask)supportedInterfaceOrientations { 682 - (UIInterfaceOrientationMask)supportedInterfaceOrientations {
686 return UIInterfaceOrientationMaskAllButUpsideDown; 683 return UIInterfaceOrientationMaskAllButUpsideDown;