change allowPortrait to unlockDisplayOrientationInStreaming
This commit is contained in:
1 parent
592b7acfc4
commit
8506640d7f
13 files changed
+49
-48
No files matched your search
@@ -737,12 +737,13 @@ const int FrontViewPositionNone = 0xff;
|
||||
//lock the orientation accordingly after streaming is started
|
||||
DataManager* dataMan = [[DataManager alloc] init];
|
||||
Settings *currentSettings = [dataMan retrieveSettings];
|
||||
//Handle allow portrait on & off
|
||||
if(currentSettings.allowPortrait){
|
||||
if (self.isStreaming || self.mainFrameIsInHostView) return [self getCurrentOrientation]; //orientation change is not allowed in streaming or mainframe host view
|
||||
else return UIInterfaceOrientationMaskAll;
|
||||
//Handle Lock Display Orientation on & off
|
||||
|
||||
if(self.mainFrameIsInHostView) return [self getCurrentOrientation]; //always try to lock orientaion in mainFrameView in order to prevent bug.
|
||||
if(currentSettings.unlockDisplayOrientation){
|
||||
return UIInterfaceOrientationMaskAll; // 90 Degree rotation will be allowed in streaming
|
||||
}
|
||||
else return UIInterfaceOrientationMaskLandscape;
|
||||
else return [self getCurrentOrientation];
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user