OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 trackId:trackId]; | 82 trackId:trackId]; |
83 } | 83 } |
84 | 84 |
85 - (RTCAVFoundationVideoSource *)avFoundationVideoSourceWithConstraints: | 85 - (RTCAVFoundationVideoSource *)avFoundationVideoSourceWithConstraints: |
86 (nullable RTCMediaConstraints *)constraints { | 86 (nullable RTCMediaConstraints *)constraints { |
87 return [[RTCAVFoundationVideoSource alloc] initWithFactory:self | 87 return [[RTCAVFoundationVideoSource alloc] initWithFactory:self |
88 constraints:constraints]; | 88 constraints:constraints]; |
89 } | 89 } |
90 | 90 |
91 - (RTCVideoSource *)videoSource { | 91 - (RTCVideoSource *)videoSource { |
92 rtc::scoped_refptr<webrtc::ObjcVideoTrackSource> objc_video_track_source( | 92 rtc::scoped_refptr<webrtc::ObjcVideoTrackSource> objcVideoTrackSource( |
93 new rtc::RefCountedObject<webrtc::ObjcVideoTrackSource>()); | 93 new rtc::RefCountedObject<webrtc::ObjcVideoTrackSource>()); |
94 return [[RTCVideoSource alloc] initWithNativeVideoSource:objc_video_track_sour
ce]; | 94 return [[RTCVideoSource alloc] initWithNativeVideoSource:objcVideoTrackSource]
; |
95 } | 95 } |
96 | 96 |
97 - (RTCVideoTrack *)videoTrackWithSource:(RTCVideoSource *)source | 97 - (RTCVideoTrack *)videoTrackWithSource:(RTCVideoSource *)source |
98 trackId:(NSString *)trackId { | 98 trackId:(NSString *)trackId { |
99 return [[RTCVideoTrack alloc] initWithFactory:self | 99 return [[RTCVideoTrack alloc] initWithFactory:self |
100 source:source | 100 source:source |
101 trackId:trackId]; | 101 trackId:trackId]; |
102 } | 102 } |
103 | 103 |
104 - (RTCMediaStream *)mediaStreamWithStreamId:(NSString *)streamId { | 104 - (RTCMediaStream *)mediaStreamWithStreamId:(NSString *)streamId { |
(...skipping 30 matching lines...) Expand all Loading... |
135 _hasStartedAecDump = _nativeFactory->StartAecDump(fd, maxSizeInBytes); | 135 _hasStartedAecDump = _nativeFactory->StartAecDump(fd, maxSizeInBytes); |
136 return _hasStartedAecDump; | 136 return _hasStartedAecDump; |
137 } | 137 } |
138 | 138 |
139 - (void)stopAecDump { | 139 - (void)stopAecDump { |
140 _nativeFactory->StopAecDump(); | 140 _nativeFactory->StopAecDump(); |
141 _hasStartedAecDump = NO; | 141 _hasStartedAecDump = NO; |
142 } | 142 } |
143 | 143 |
144 @end | 144 @end |
OLD | NEW |