RTCRtpEncodingParameters.h 1.8 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. NS_ASSUME_NONNULL_BEGIN
  13. RTC_OBJC_EXPORT
  14. @interface RTCRtpEncodingParameters : NSObject
  15. /** The idenfifier for the encoding layer. This is used in simulcast. */
  16. @property(nonatomic, copy, nullable) NSString *rid;
  17. /** Controls whether the encoding is currently transmitted. */
  18. @property(nonatomic, assign) BOOL isActive;
  19. /** The maximum bitrate to use for the encoding, or nil if there is no
  20. * limit.
  21. */
  22. @property(nonatomic, copy, nullable) NSNumber *maxBitrateBps;
  23. /** The minimum bitrate to use for the encoding, or nil if there is no
  24. * limit.
  25. */
  26. @property(nonatomic, copy, nullable) NSNumber *minBitrateBps;
  27. /** The maximum framerate to use for the encoding, or nil if there is no
  28. * limit.
  29. */
  30. @property(nonatomic, copy, nullable) NSNumber *maxFramerate;
  31. /** The requested number of temporal layers to use for the encoding, or nil
  32. * if the default should be used.
  33. */
  34. @property(nonatomic, copy, nullable) NSNumber *numTemporalLayers;
  35. /** Scale the width and height down by this factor for video. If nil,
  36. * implementation default scaling factor will be used.
  37. */
  38. @property(nonatomic, copy, nullable) NSNumber *scaleResolutionDownBy;
  39. /** The SSRC being used by this encoding. */
  40. @property(nonatomic, readonly, nullable) NSNumber *ssrc;
  41. - (instancetype)init NS_DESIGNATED_INITIALIZER;
  42. @end
  43. NS_ASSUME_NONNULL_END