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 |
11 #import "RTCVideoTrack.h" | 11 #import "RTCVideoTrack+Private.h" |
12 | 12 |
13 #import "webrtc/api/objc/RTCMediaStreamTrack+Private.h" | 13 #import "NSString+StdString.h" |
14 #import "webrtc/api/objc/RTCPeerConnectionFactory+Private.h" | 14 #import "RTCMediaStreamTrack+Private.h" |
15 #import "webrtc/api/objc/RTCVideoRendererAdapter+Private.h" | 15 #import "RTCPeerConnectionFactory+Private.h" |
16 #import "webrtc/api/objc/RTCVideoSource+Private.h" | 16 #import "RTCVideoRendererAdapter+Private.h" |
17 #import "webrtc/api/objc/RTCVideoTrack+Private.h" | 17 #import "RTCVideoSource+Private.h" |
18 #import "webrtc/base/objc/NSString+StdString.h" | |
19 | 18 |
20 @implementation RTCVideoTrack { | 19 @implementation RTCVideoTrack { |
21 NSMutableArray *_adapters; | 20 NSMutableArray *_adapters; |
22 } | 21 } |
23 | 22 |
24 @synthesize source = _source; | 23 @synthesize source = _source; |
25 | 24 |
26 - (instancetype)initWithFactory:(RTCPeerConnectionFactory *)factory | 25 - (instancetype)initWithFactory:(RTCPeerConnectionFactory *)factory |
27 source:(RTCVideoSource *)source | 26 source:(RTCVideoSource *)source |
28 trackId:(NSString *)trackId { | 27 trackId:(NSString *)trackId { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 [_adapters removeObjectAtIndex:indexToRemove]; | 101 [_adapters removeObjectAtIndex:indexToRemove]; |
103 } | 102 } |
104 | 103 |
105 #pragma mark - Private | 104 #pragma mark - Private |
106 | 105 |
107 - (rtc::scoped_refptr<webrtc::VideoTrackInterface>)nativeVideoTrack { | 106 - (rtc::scoped_refptr<webrtc::VideoTrackInterface>)nativeVideoTrack { |
108 return static_cast<webrtc::VideoTrackInterface *>(self.nativeTrack.get()); | 107 return static_cast<webrtc::VideoTrackInterface *>(self.nativeTrack.get()); |
109 } | 108 } |
110 | 109 |
111 @end | 110 @end |
OLD | NEW |