RTCRtpSender.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Copyright 2016 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 <Foundation/Foundation.h>
  11. #import "RTCDtmfSender.h"
  12. #import "RTCMacros.h"
  13. #import "RTCMediaStreamTrack.h"
  14. #import "RTCRtpParameters.h"
  15. NS_ASSUME_NONNULL_BEGIN
  16. RTC_OBJC_EXPORT
  17. @protocol RTCRtpSender <NSObject>
  18. /** A unique identifier for this sender. */
  19. @property(nonatomic, readonly) NSString *senderId;
  20. /** The currently active RTCRtpParameters, as defined in
  21. * https://www.w3.org/TR/webrtc/#idl-def-RTCRtpParameters.
  22. */
  23. @property(nonatomic, copy) RTCRtpParameters *parameters;
  24. /** The RTCMediaStreamTrack associated with the sender.
  25. * Note: reading this property returns a new instance of
  26. * RTCMediaStreamTrack. Use isEqual: instead of == to compare
  27. * RTCMediaStreamTrack instances.
  28. */
  29. @property(nonatomic, copy, nullable) RTCMediaStreamTrack *track;
  30. /** The RTCDtmfSender accociated with the RTP sender. */
  31. @property(nonatomic, readonly, nullable) id<RTCDtmfSender> dtmfSender;
  32. @end
  33. RTC_OBJC_EXPORT
  34. @interface RTCRtpSender : NSObject <RTCRtpSender>
  35. - (instancetype)init NS_UNAVAILABLE;
  36. @end
  37. NS_ASSUME_NONNULL_END