RTCRtpParameters.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 "RTCMacros.h"
  12. #import "RTCRtcpParameters.h"
  13. #import "RTCRtpCodecParameters.h"
  14. #import "RTCRtpEncodingParameters.h"
  15. #import "RTCRtpHeaderExtension.h"
  16. NS_ASSUME_NONNULL_BEGIN
  17. /** Corresponds to webrtc::DegradationPreference. */
  18. typedef NS_ENUM(NSInteger, RTCDegradationPreference) {
  19. RTCDegradationPreferenceDisabled,
  20. RTCDegradationPreferenceMaintainFramerate,
  21. RTCDegradationPreferenceMaintainResolution,
  22. RTCDegradationPreferenceBalanced
  23. };
  24. RTC_OBJC_EXPORT
  25. @interface RTC_OBJC_TYPE (RTCRtpParameters) : NSObject
  26. /** A unique identifier for the last set of parameters applied. */
  27. @property(nonatomic, copy) NSString *transactionId;
  28. /** Parameters used for RTCP. */
  29. @property(nonatomic, readonly, copy) RTC_OBJC_TYPE(RTCRtcpParameters) * rtcp;
  30. /** An array containing parameters for RTP header extensions. */
  31. @property(nonatomic, readonly, copy)
  32. NSArray<RTC_OBJC_TYPE(RTCRtpHeaderExtension) *> *headerExtensions;
  33. /** The currently active encodings in the order of preference. */
  34. @property(nonatomic, copy) NSArray<RTC_OBJC_TYPE(RTCRtpEncodingParameters) *> *encodings;
  35. /** The negotiated set of send codecs in order of preference. */
  36. @property(nonatomic, copy) NSArray<RTC_OBJC_TYPE(RTCRtpCodecParameters) *> *codecs;
  37. /**
  38. * Degradation preference in case of CPU adaptation or constrained bandwidth.
  39. * If nil, implementation default degradation preference will be used.
  40. */
  41. @property(nonatomic, copy, nullable) NSNumber *degradationPreference;
  42. - (instancetype)init NS_DESIGNATED_INITIALIZER;
  43. @end
  44. NS_ASSUME_NONNULL_END