| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #import <Foundation/Foundation.h> | 11 #import <Foundation/Foundation.h> |
| 12 | 12 |
| 13 #import <WebRTC/RTCMacros.h> |
| 14 |
| 13 NS_ASSUME_NONNULL_BEGIN | 15 NS_ASSUME_NONNULL_BEGIN |
| 14 | 16 |
| 15 extern const NSString * const kRtxCodecMimeType; | 17 RTC_EXTERN const NSString * const kRTCRtxCodecMimeType; |
| 16 extern const NSString * const kRedCodecMimeType; | 18 RTC_EXTERN const NSString * const kRTCRedCodecMimeType; |
| 17 extern const NSString * const kUlpfecCodecMimeType; | 19 RTC_EXTERN const NSString * const kRTCUlpfecCodecMimeType; |
| 18 extern const NSString * const kOpusCodecMimeType; | 20 RTC_EXTERN const NSString * const kRTCOpusCodecMimeType; |
| 19 extern const NSString * const kIsacCodecMimeType; | 21 RTC_EXTERN const NSString * const kRTCIsacCodecMimeType; |
| 20 extern const NSString * const kL16CodecMimeType; | 22 RTC_EXTERN const NSString * const kRTCL16CodecMimeType; |
| 21 extern const NSString * const kG722CodecMimeType; | 23 RTC_EXTERN const NSString * const kRTCG722CodecMimeType; |
| 22 extern const NSString * const kIlbcCodecMimeType; | 24 RTC_EXTERN const NSString * const kRTCIlbcCodecMimeType; |
| 23 extern const NSString * const kPcmuCodecMimeType; | 25 RTC_EXTERN const NSString * const kRTCPcmuCodecMimeType; |
| 24 extern const NSString * const kPcmaCodecMimeType; | 26 RTC_EXTERN const NSString * const kRTCPcmaCodecMimeType; |
| 25 extern const NSString * const kDtmfCodecMimeType; | 27 RTC_EXTERN const NSString * const kRTCDtmfCodecMimeType; |
| 26 extern const NSString * const kComfortNoiseCodecMimeType; | 28 RTC_EXTERN const NSString * const kRTCComfortNoiseCodecMimeType; |
| 27 extern const NSString * const kVp8CodecMimeType; | 29 RTC_EXTERN const NSString * const kRTCVp8CodecMimeType; |
| 28 extern const NSString * const kVp9CodecMimeType; | 30 RTC_EXTERN const NSString * const kRTCVp9CodecMimeType; |
| 29 extern const NSString * const kH264CodecMimeType; | 31 RTC_EXTERN const NSString * const kRTCH264CodecMimeType; |
| 30 | 32 |
| 31 /** Defined in http://w3c.github.io/webrtc-pc/#idl-def-RTCRtpCodecParameters */ | 33 /** Defined in http://w3c.github.io/webrtc-pc/#idl-def-RTCRtpCodecParameters */ |
| 34 RTC_EXPORT |
| 32 @interface RTCRtpCodecParameters : NSObject | 35 @interface RTCRtpCodecParameters : NSObject |
| 33 | 36 |
| 34 /** The RTP payload type. */ | 37 /** The RTP payload type. */ |
| 35 @property(nonatomic, assign) int payloadType; | 38 @property(nonatomic, assign) int payloadType; |
| 36 | 39 |
| 37 /** | 40 /** |
| 38 * The codec MIME type. Valid types are listed in: | 41 * The codec MIME type. Valid types are listed in: |
| 39 * http://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-param
eters-2 | 42 * http://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-param
eters-2 |
| 40 * | 43 * |
| 41 * Several supported types are represented by the constants above. | 44 * Several supported types are represented by the constants above. |
| 42 */ | 45 */ |
| 43 @property(nonatomic, nonnull) NSString *mimeType; | 46 @property(nonatomic, nonnull) NSString *mimeType; |
| 44 | 47 |
| 45 /** The codec clock rate expressed in Hertz. */ | 48 /** The codec clock rate expressed in Hertz. */ |
| 46 @property(nonatomic, assign) int clockRate; | 49 @property(nonatomic, assign) int clockRate; |
| 47 | 50 |
| 48 /** The number of channels (mono=1, stereo=2). */ | 51 /** The number of channels (mono=1, stereo=2). */ |
| 49 @property(nonatomic, assign) int channels; | 52 @property(nonatomic, assign) int channels; |
| 50 | 53 |
| 51 - (instancetype)init NS_DESIGNATED_INITIALIZER; | 54 - (instancetype)init NS_DESIGNATED_INITIALIZER; |
| 52 | 55 |
| 53 @end | 56 @end |
| 54 | 57 |
| 55 NS_ASSUME_NONNULL_END | 58 NS_ASSUME_NONNULL_END |
| OLD | NEW |