From 4a472fb18d6e3860e3e6da501d0e651c487e911f Mon Sep 17 00:00:00 2001 From: "tkchin@webrtc.org" Date: Thu, 17 Jul 2014 00:21:59 +0000 Subject: [PATCH] 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 . git-svn-id: http://webrtc.googlecode.com/svn/trunk@6712 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/video_capture/ios/rtc_video_capture_ios_objc.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webrtc/modules/video_capture/ios/rtc_video_capture_ios_objc.mm b/webrtc/modules/video_capture/ios/rtc_video_capture_ios_objc.mm index 6995daf934..4e334d4cec 100644 --- a/webrtc/modules/video_capture/ios/rtc_video_capture_ios_objc.mm +++ b/webrtc/modules/video_capture/ios/rtc_video_capture_ios_objc.mm @@ -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: