Chromium Code Reviews| Index: webrtc/api/objc/RTCVideoSource.mm |
| diff --git a/webrtc/api/objc/RTCVideoSource.mm b/webrtc/api/objc/RTCVideoSource.mm |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8dd2d5b845bd6a12ccca217941939e8f4fa338f4 |
| --- /dev/null |
| +++ b/webrtc/api/objc/RTCVideoSource.mm |
| @@ -0,0 +1,31 @@ |
| +/* |
| + * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
| + * |
| + * Use of this source code is governed by a BSD-style license |
| + * that can be found in the LICENSE file in the root of the source |
| + * tree. An additional intellectual property rights grant can be found |
| + * in the file PATENTS. All contributing project authors may |
| + * be found in the AUTHORS file in the root of the source tree. |
| + */ |
| + |
| +#import "RTCVideoSource.h" |
| + |
| +#import "webrtc/api/objc/RTCMediaSource+Private.h" |
| +#import "webrtc/api/objc/RTCVideoSource+Private.h" |
| + |
| +@implementation RTCVideoSource |
| + |
| +#pragma mark - Private |
| + |
| +- (rtc::scoped_refptr<webrtc::VideoSourceInterface>)nativeVideoSource { |
| + webrtc::VideoSourceInterface *videoSource = |
| + static_cast<webrtc::VideoSourceInterface *>(self.nativeMediaSource.get()); |
| + 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.
|
| +} |
| + |
| +- (instancetype)initWithNativeVideoSource: |
| + (rtc::scoped_refptr<webrtc::VideoSourceInterface>)nativeVideoSource { |
| + return [super initWithNativeMediaSource:nativeVideoSource]; |
| +} |
| + |
| +@end |