RTCRtpTransceiver+Private.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright 2018 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 "RTCRtpTransceiver.h"
  11. #include "api/rtp_transceiver_interface.h"
  12. NS_ASSUME_NONNULL_BEGIN
  13. @class RTC_OBJC_TYPE(RTCPeerConnectionFactory);
  14. @interface RTC_OBJC_TYPE (RTCRtpTransceiverInit)
  15. ()
  16. @property(nonatomic, readonly) webrtc::RtpTransceiverInit nativeInit;
  17. @end
  18. @interface RTC_OBJC_TYPE (RTCRtpTransceiver)
  19. ()
  20. @property(nonatomic,
  21. readonly) rtc::scoped_refptr<webrtc::RtpTransceiverInterface> nativeRtpTransceiver;
  22. /** Initialize an RTCRtpTransceiver with a native RtpTransceiverInterface. */
  23. - (instancetype)initWithFactory:(RTC_OBJC_TYPE(RTCPeerConnectionFactory) *)factory
  24. nativeRtpTransceiver:
  25. (rtc::scoped_refptr<webrtc::RtpTransceiverInterface>)nativeRtpTransceiver
  26. NS_DESIGNATED_INITIALIZER;
  27. + (webrtc::RtpTransceiverDirection)nativeRtpTransceiverDirectionFromDirection:
  28. (RTCRtpTransceiverDirection)direction;
  29. + (RTCRtpTransceiverDirection)rtpTransceiverDirectionFromNativeDirection:
  30. (webrtc::RtpTransceiverDirection)nativeDirection;
  31. @end
  32. NS_ASSUME_NONNULL_END