Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: webrtc/api/objc/RTCVideoSource.mm

Issue 1546783002: Move RTCVideoSource to webrtc/api/objc. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@updateRTCMediaSource
Patch Set: Changes based on feedback Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 rtc::scoped_refptr<webrtc::VideoSourceInterface> _nativeVideoSource;
18 }
19
20 - (NSString *)description {
21 return [NSString stringWithFormat:@"RTCVideoSource:\n%@",
22 [[self class] stringForState:self.state]];
23 }
24
25 #pragma mark - Private
26
27 - (rtc::scoped_refptr<webrtc::MediaSourceInterface>)nativeMediaSource {
28 return _nativeVideoSource;
29 }
30
31 - (rtc::scoped_refptr<webrtc::VideoSourceInterface>)nativeVideoSource {
32 return _nativeVideoSource;
33 }
34
35 - (instancetype)initWithNativeVideoSource:
36 (rtc::scoped_refptr<webrtc::VideoSourceInterface>)nativeVideoSource {
37 if (self = [super init]) {
38 _nativeVideoSource = nativeVideoSource;
39 }
40 return self;
41 }
42
43 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698