RTCRtpCodecCapability.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright 2024 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 <WebRTC/RTCMacros.h>
  12. NS_ASSUME_NONNULL_BEGIN
  13. RTC_OBJC_EXPORT
  14. @interface RTC_OBJC_TYPE (RTCRtpCodecCapability) : NSObject
  15. /** The preferred RTP payload type. */
  16. @property(nonatomic, readonly, nullable) NSNumber *preferredPayloadType;
  17. /**
  18. * The codec MIME subtype. Valid types are listed in:
  19. * http://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-parameters-2
  20. *
  21. * Several supported types are represented by the constants above.
  22. */
  23. @property(nonatomic, readonly) NSString *name;
  24. /**
  25. * The media type of this codec. Equivalent to MIME top-level type.
  26. *
  27. * Valid values are kRTCMediaStreamTrackKindAudio and
  28. * kRTCMediaStreamTrackKindVideo.
  29. */
  30. @property(nonatomic, readonly) NSString *kind;
  31. /** The codec clock rate expressed in Hertz. */
  32. @property(nonatomic, readonly, nullable) NSNumber *clockRate;
  33. /**
  34. * The number of audio channels (mono=1, stereo=2).
  35. * Set to null for video codecs.
  36. **/
  37. @property(nonatomic, readonly, nullable) NSNumber *numChannels;
  38. /** The "format specific parameters" field from the "a=fmtp" line in the SDP */
  39. @property(nonatomic, readonly) NSDictionary<NSString *, NSString *> *parameters;
  40. /** The MIME type of the codec. */
  41. @property(nonatomic, readonly) NSString *mimeType;
  42. - (instancetype)init NS_UNAVAILABLE;
  43. @end
  44. NS_ASSUME_NONNULL_END