Implement CVO for iOS capturer
The rotation is currently always applied by AVFoundation by
reconfiguring the capture connection video orientation. This CL sets the
rotation field in the frame instead. This avoids the current flash in
the video when the device is rotated, and also avoids reconfiguring the
local encoder and remote decoder when the device is rotated.
BUG=b/30651939
Review-Url: https://codereview.webrtc.org/2271583003
Cr-Commit-Position: refs/heads/master@{#13916}
diff --git a/webrtc/sdk/sdk.gyp b/webrtc/sdk/sdk.gyp
index 4a5fa0e..46d324e 100644
--- a/webrtc/sdk/sdk.gyp
+++ b/webrtc/sdk/sdk.gyp
@@ -189,6 +189,9 @@
'objc/Framework/Headers/WebRTC/RTCVideoTrack.h',
], # sources
'conditions': [
+ ['build_libyuv==1', {
+ 'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv'],
+ }],
['OS=="ios"', {
'sources': [
'objc/Framework/Classes/RTCEAGLVideoView.m',