Fix support orientation changes in Camera Preview

Bug: webrtc:8532
Change-Id: I2a3cc6974af711f1be6a55a6a1e04e7189175bd3
Reviewed-on: https://webrtc-review.googlesource.com/23220
Reviewed-by: Anders Carlsson <andersc@webrtc.org>
Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
Commit-Queue: Anders Carlsson <andersc@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20702}
This commit is contained in:
Gustavo Garcia gustavo@lifeonair.com
2017-11-15 16:03:18 +02:00
committed by Commit Bot
parent 6581f21f0e
commit 19d77c1bbb
3 changed files with 48 additions and 0 deletions

View File

@ -63,6 +63,10 @@
[session addDelegate:self];
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAll;
}
#pragma mark - ARDAppClientDelegate
- (void)appClient:(ARDAppClient *)client

View File

@ -53,6 +53,9 @@
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UIAppFonts</key>
<array>