summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authortkchin@webrtc.org <tkchin@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-07-18 17:17:59 +0000
committertkchin@webrtc.org <tkchin@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-07-18 17:17:59 +0000
commit08e28ebda0abe0b817ffbd37dd2db6aefdd3e323 (patch)
tree0dcdb385a6a2a014b3152097f40d9a2698614534 /modules
parentda5452b790542762d63dbcf69c7f8213aa768490 (diff)
downloadwebrtc-08e28ebda0abe0b817ffbd37dd2db6aefdd3e323.tar.gz
Runtime guard for iOS7 property.
BUG=3487 R=glaznev@webrtc.org Review URL: https://webrtc-codereview.appspot.com/19989004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@6733 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'modules')
-rw-r--r--modules/video_capture/ios/rtc_video_capture_ios_objc.mm5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/video_capture/ios/rtc_video_capture_ios_objc.mm b/modules/video_capture/ios/rtc_video_capture_ios_objc.mm
index 4e334d4c..ac90b72a 100644
--- a/modules/video_capture/ios/rtc_video_capture_ios_objc.mm
+++ b/modules/video_capture/ios/rtc_video_capture_ios_objc.mm
@@ -44,7 +44,10 @@ using namespace webrtc::videocapturemodule;
_captureId = captureId;
_captureSession = [[AVCaptureSession alloc] init];
#if defined(__IPHONE_7_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_7_0
- _captureSession.usesApplicationAudioSession = NO;
+ NSString* version = [[UIDevice currentDevice] systemVersion];
+ if ([version integerValue] >= 7) {
+ _captureSession.usesApplicationAudioSession = NO;
+ }
#endif
_captureChanging = NO;
_captureChangingCondition = [[NSCondition alloc] init];