Remove compat for iOS 7/8
BUG=None R=magjed@webrtc.org, tkchin@webrtc.org Review URL: https://codereview.webrtc.org/2382713002 . Cr-Commit-Position: refs/heads/master@{#14448}
This commit is contained in:
parent
3b703ede8b
commit
15e4ec334c
@ -44,11 +44,8 @@ using namespace webrtc::videocapturemodule;
|
||||
_owner = owner;
|
||||
_captureId = captureId;
|
||||
_captureSession = [[AVCaptureSession alloc] init];
|
||||
#if defined(__IPHONE_7_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_7_0
|
||||
NSString* version = [[UIDevice currentDevice] systemVersion];
|
||||
if ([version integerValue] >= 7) {
|
||||
_captureSession.usesApplicationAudioSession = NO;
|
||||
}
|
||||
#if defined(WEBRTC_IOS)
|
||||
_captureSession.usesApplicationAudioSession = NO;
|
||||
#endif
|
||||
_captureChanging = NO;
|
||||
_captureChangingCondition = [[NSCondition alloc] init];
|
||||
|
||||
@ -15,9 +15,8 @@
|
||||
#if defined(WEBRTC_IOS) || defined(WEBRTC_MAC)
|
||||
|
||||
#include <Availability.h>
|
||||
#if (defined(__IPHONE_8_0) && defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && \
|
||||
__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0) || \
|
||||
(defined(__MAC_10_8) && __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_8)
|
||||
#if defined(WEBRTC_IOS) || \
|
||||
defined(__MAC_10_8) && __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_8
|
||||
#define WEBRTC_VIDEO_TOOLBOX_SUPPORTED 1
|
||||
#endif
|
||||
|
||||
|
||||
@ -412,14 +412,9 @@ static NSString *GetSessionPresetForVideoFormat(
|
||||
|
||||
- (BOOL)setupCaptureSession {
|
||||
AVCaptureSession *captureSession = [[AVCaptureSession alloc] init];
|
||||
#if defined(__IPHONE_7_0) && defined(__IPHONE_OS_VERSION_MAX_ALLOWED) \
|
||||
&& __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_7_0
|
||||
NSString *version = [[UIDevice currentDevice] systemVersion];
|
||||
if ([version integerValue] >= 7) {
|
||||
captureSession.usesApplicationAudioSession = NO;
|
||||
}
|
||||
#if defined(WEBRTC_IOS)
|
||||
captureSession.usesApplicationAudioSession = NO;
|
||||
#endif
|
||||
|
||||
// Add the output.
|
||||
AVCaptureVideoDataOutput *videoDataOutput = [self videoDataOutput];
|
||||
if (![captureSession canAddOutput:videoDataOutput]) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user