RTCVideoSource+Private.h 1.6 KB

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