Fixes up rtc so that it compiles on iOS 8 SDK.
Adds support for UIInterfaceOrientationUnknown (new with in SDK) and makes it the same as UIInterfaceOrientationPortrait. R=noahric@google.com, tkchin@webrtc.org Review URL: https://webrtc-codereview.appspot.com/13029004 Patch from David Maclachlan <dmaclach@chromium.org>. git-svn-id: http://webrtc.googlecode.com/svn/trunk@6712 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
52eddec71b
commit
4a472fb18d
@ -220,6 +220,9 @@ using namespace webrtc::videocapturemodule;
|
||||
return;
|
||||
switch ([UIApplication sharedApplication].statusBarOrientation) {
|
||||
case UIInterfaceOrientationPortrait:
|
||||
#if defined(__IPHONE_8_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0
|
||||
case UIInterfaceOrientationUnknown:
|
||||
#endif
|
||||
_connection.videoOrientation = AVCaptureVideoOrientationPortrait;
|
||||
break;
|
||||
case UIInterfaceOrientationPortraitUpsideDown:
|
||||
|
Loading…
x
Reference in New Issue
Block a user