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 "RTCMediaSource+Private.h" 14 15 #include "api/media_stream_interface.h" 16 #include "rtc_base/thread.h" 17 18 NS_ASSUME_NONNULL_BEGIN 19 20 @interface RTC_OBJC_TYPE (RTCVideoSource) 21 () 22 23 /** 24 * The VideoTrackSourceInterface object passed to this RTCVideoSource during 25 * construction. 26 */ 27 @property(nonatomic, 28 readonly) rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> nativeVideoSource; 29 30 /** Initialize an RTCVideoSource from a native VideoTrackSourceInterface. */ 31 - (instancetype)initWithFactory:(RTC_OBJC_TYPE(RTCPeerConnectionFactory) *)factory 32 nativeVideoSource: 33 (rtc::scoped_refptr<webrtc::VideoTrackSourceInterface>)nativeVideoSource 34 NS_DESIGNATED_INITIALIZER; 35 36 - (instancetype)initWithFactory:(RTC_OBJC_TYPE(RTCPeerConnectionFactory) *)factory 37 nativeMediaSource:(rtc::scoped_refptr<webrtc::MediaSourceInterface>)nativeMediaSource 38 type:(RTCMediaSourceType)type NS_UNAVAILABLE; 39 40 - (instancetype)initWithFactory:(RTC_OBJC_TYPE(RTCPeerConnectionFactory) *)factory 41 signalingThread:(rtc::Thread *)signalingThread 42 workerThread:(rtc::Thread *)workerThread; 43 44 @end 45 46 NS_ASSUME_NONNULL_END 47