RTCRtpSender.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 RTC_OBJC_TYPE
  18. (RTCRtpSender)<NSObject>
  19. /** A unique identifier for this sender. */
  20. @property(nonatomic, readonly) NSString *senderId;
  21. /** The currently active RTCRtpParameters, as defined in
  22. * https://www.w3.org/TR/webrtc/#idl-def-RTCRtpParameters.
  23. */
  24. @property(nonatomic, copy) RTC_OBJC_TYPE(RTCRtpParameters) * parameters;
  25. /** The RTCMediaStreamTrack associated with the sender.
  26. * Note: reading this property returns a new instance of
  27. * RTCMediaStreamTrack. Use isEqual: instead of == to compare
  28. * RTCMediaStreamTrack instances.
  29. */
  30. @property(nonatomic, copy, nullable) RTC_OBJC_TYPE(RTCMediaStreamTrack) * track;
  31. /** IDs of streams associated with the RTP sender */
  32. @property(nonatomic, copy) NSArray<NSString *> *streamIds;
  33. /** The RTCDtmfSender accociated with the RTP sender. */
  34. @property(nonatomic, readonly, nullable) id<RTC_OBJC_TYPE(RTCDtmfSender)> dtmfSender;
  35. @end
  36. RTC_OBJC_EXPORT
  37. @interface RTC_OBJC_TYPE (RTCRtpSender) : NSObject <RTC_OBJC_TYPE(RTCRtpSender)>
  38. - (instancetype)init NS_UNAVAILABLE;
  39. @end
  40. NS_ASSUME_NONNULL_END