OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | |
3 * | |
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 | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 #import "RTCVideoSource.h" | |
12 | |
13 #import "webrtc/api/objc/RTCMediaSource+Private.h" | |
14 #import "webrtc/api/objc/RTCVideoSource+Private.h" | |
15 | |
16 @implementation RTCVideoSource | |
17 | |
18 #pragma mark - Private | |
19 | |
20 - (rtc::scoped_refptr<webrtc::VideoSourceInterface>)nativeVideoSource { | |
21 webrtc::VideoSourceInterface *videoSource = | |
22 static_cast<webrtc::VideoSourceInterface *>(self.nativeMediaSource.get()); | |
23 return rtc::scoped_refptr<webrtc::VideoSourceInterface>(videoSource); | |
tkchin_webrtc
2016/01/11 22:59:08
aha okay. We can't do it this way because we will
hjon
2016/01/12 00:25:15
Done.
| |
24 } | |
25 | |
26 - (instancetype)initWithNativeVideoSource: | |
27 (rtc::scoped_refptr<webrtc::VideoSourceInterface>)nativeVideoSource { | |
28 return [super initWithNativeMediaSource:nativeVideoSource]; | |
29 } | |
30 | |
31 @end | |
OLD | NEW |