Chromium Code Reviews| Index: webrtc/sdk/objc/Framework/Classes/RTCPeerConnectionFactory.mm |
| diff --git a/webrtc/sdk/objc/Framework/Classes/RTCPeerConnectionFactory.mm b/webrtc/sdk/objc/Framework/Classes/RTCPeerConnectionFactory.mm |
| index 4f542a9fcc6e519e8c1eb945eab2e2ec6376ba4f..9759269357c961377c2a9838485babb3a4e0e181 100644 |
| --- a/webrtc/sdk/objc/Framework/Classes/RTCPeerConnectionFactory.mm |
| +++ b/webrtc/sdk/objc/Framework/Classes/RTCPeerConnectionFactory.mm |
| @@ -21,6 +21,7 @@ |
| #import "RTCVideoTrack+Private.h" |
| #import "WebRTC/RTCLogging.h" |
| +#include "objcvideotracksource.h" |
| #include "videotoolboxvideocodecfactory.h" |
| @implementation RTCPeerConnectionFactory { |
| @@ -87,6 +88,12 @@ |
| constraints:constraints]; |
| } |
| +- (RTCVideoSource *)videoSource { |
| + rtc::scoped_refptr<webrtc::ObjcVideoTrackSource> objc_video_track_source( |
|
tkchin_webrtc
2017/04/06 18:01:51
ObjC naming in ObjC methods, so camel case
magjed_webrtc
2017/04/10 12:12:50
Done.
|
| + new rtc::RefCountedObject<webrtc::ObjcVideoTrackSource>()); |
| + return [[RTCVideoSource alloc] initWithNativeVideoSource:objc_video_track_source]; |
| +} |
| + |
| - (RTCVideoTrack *)videoTrackWithSource:(RTCVideoSource *)source |
| trackId:(NSString *)trackId { |
| return [[RTCVideoTrack alloc] initWithFactory:self |