1*d9f75844SAndroid Build Coastguard Worker /* 2*d9f75844SAndroid Build Coastguard Worker * Copyright 2016 The WebRTC project authors. All Rights Reserved. 3*d9f75844SAndroid Build Coastguard Worker * 4*d9f75844SAndroid Build Coastguard Worker * Use of this source code is governed by a BSD-style license 5*d9f75844SAndroid Build Coastguard Worker * that can be found in the LICENSE file in the root of the source 6*d9f75844SAndroid Build Coastguard Worker * tree. An additional intellectual property rights grant can be found 7*d9f75844SAndroid Build Coastguard Worker * in the file PATENTS. All contributing project authors may 8*d9f75844SAndroid Build Coastguard Worker * be found in the AUTHORS file in the root of the source tree. 9*d9f75844SAndroid Build Coastguard Worker */ 10*d9f75844SAndroid Build Coastguard Worker 11*d9f75844SAndroid Build Coastguard Worker #import <Foundation/Foundation.h> 12*d9f75844SAndroid Build Coastguard Worker 13*d9f75844SAndroid Build Coastguard Worker #import "RTCMacros.h" 14*d9f75844SAndroid Build Coastguard Worker #import "RTCRtcpParameters.h" 15*d9f75844SAndroid Build Coastguard Worker #import "RTCRtpCodecParameters.h" 16*d9f75844SAndroid Build Coastguard Worker #import "RTCRtpEncodingParameters.h" 17*d9f75844SAndroid Build Coastguard Worker #import "RTCRtpHeaderExtension.h" 18*d9f75844SAndroid Build Coastguard Worker 19*d9f75844SAndroid Build Coastguard Worker NS_ASSUME_NONNULL_BEGIN 20*d9f75844SAndroid Build Coastguard Worker 21*d9f75844SAndroid Build Coastguard Worker /** Corresponds to webrtc::DegradationPreference. */ 22*d9f75844SAndroid Build Coastguard Worker typedef NS_ENUM(NSInteger, RTCDegradationPreference) { 23*d9f75844SAndroid Build Coastguard Worker RTCDegradationPreferenceDisabled, 24*d9f75844SAndroid Build Coastguard Worker RTCDegradationPreferenceMaintainFramerate, 25*d9f75844SAndroid Build Coastguard Worker RTCDegradationPreferenceMaintainResolution, 26*d9f75844SAndroid Build Coastguard Worker RTCDegradationPreferenceBalanced 27*d9f75844SAndroid Build Coastguard Worker }; 28*d9f75844SAndroid Build Coastguard Worker 29*d9f75844SAndroid Build Coastguard Worker RTC_OBJC_EXPORT 30*d9f75844SAndroid Build Coastguard Worker @interface RTC_OBJC_TYPE (RTCRtpParameters) : NSObject 31*d9f75844SAndroid Build Coastguard Worker 32*d9f75844SAndroid Build Coastguard Worker /** A unique identifier for the last set of parameters applied. */ 33*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, copy) NSString *transactionId; 34*d9f75844SAndroid Build Coastguard Worker 35*d9f75844SAndroid Build Coastguard Worker /** Parameters used for RTCP. */ 36*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, readonly, copy) RTC_OBJC_TYPE(RTCRtcpParameters) * rtcp; 37*d9f75844SAndroid Build Coastguard Worker 38*d9f75844SAndroid Build Coastguard Worker /** An array containing parameters for RTP header extensions. */ 39*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, readonly, copy) 40*d9f75844SAndroid Build Coastguard Worker NSArray<RTC_OBJC_TYPE(RTCRtpHeaderExtension) *> *headerExtensions; 41*d9f75844SAndroid Build Coastguard Worker 42*d9f75844SAndroid Build Coastguard Worker /** The currently active encodings in the order of preference. */ 43*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, copy) NSArray<RTC_OBJC_TYPE(RTCRtpEncodingParameters) *> *encodings; 44*d9f75844SAndroid Build Coastguard Worker 45*d9f75844SAndroid Build Coastguard Worker /** The negotiated set of send codecs in order of preference. */ 46*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, copy) NSArray<RTC_OBJC_TYPE(RTCRtpCodecParameters) *> *codecs; 47*d9f75844SAndroid Build Coastguard Worker 48*d9f75844SAndroid Build Coastguard Worker /** 49*d9f75844SAndroid Build Coastguard Worker * Degradation preference in case of CPU adaptation or constrained bandwidth. 50*d9f75844SAndroid Build Coastguard Worker * If nil, implementation default degradation preference will be used. 51*d9f75844SAndroid Build Coastguard Worker */ 52*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, copy, nullable) NSNumber *degradationPreference; 53*d9f75844SAndroid Build Coastguard Worker 54*d9f75844SAndroid Build Coastguard Worker - (instancetype)init; 55*d9f75844SAndroid Build Coastguard Worker 56*d9f75844SAndroid Build Coastguard Worker @end 57*d9f75844SAndroid Build Coastguard Worker 58*d9f75844SAndroid Build Coastguard Worker NS_ASSUME_NONNULL_END 59