OLD | NEW |
(Empty) | |
| 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 |
| 11 #import <Foundation/Foundation.h> |
| 12 |
| 13 NS_ASSUME_NONNULL_BEGIN |
| 14 |
| 15 extern const NSString * const kRtxCodecMimeType; |
| 16 extern const NSString * const kRedCodecMimeType; |
| 17 extern const NSString * const kUlpfecCodecMimeType; |
| 18 extern const NSString * const kOpusCodecMimeType; |
| 19 extern const NSString * const kIsacCodecMimeType; |
| 20 extern const NSString * const kL16CodecMimeType; |
| 21 extern const NSString * const kG722CodecMimeType; |
| 22 extern const NSString * const kIlbcCodecMimeType; |
| 23 extern const NSString * const kPcmuCodecMimeType; |
| 24 extern const NSString * const kPcmaCodecMimeType; |
| 25 extern const NSString * const kDtmfCodecMimeType; |
| 26 extern const NSString * const kComfortNoiseCodecMimeType; |
| 27 extern const NSString * const kVp8CodecMimeType; |
| 28 extern const NSString * const kVp9CodecMimeType; |
| 29 extern const NSString * const kH264CodecMimeType; |
| 30 |
| 31 /** Defined in http://w3c.github.io/webrtc-pc/#idl-def-RTCRtpCodecParameters */ |
| 32 @interface RTCRtpCodecParameters : NSObject |
| 33 |
| 34 /** The RTP payload type. */ |
| 35 @property(nonatomic, assign) int payloadType; |
| 36 |
| 37 /** |
| 38 * The codec MIME type. Valid types are listed in: |
| 39 * http://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-param
eters-2 |
| 40 * |
| 41 * Several supported types are represented by the constants above. |
| 42 */ |
| 43 @property(nonatomic, nonnull) NSString *mimeType; |
| 44 |
| 45 /** The codec clock rate expressed in Hertz. */ |
| 46 @property(nonatomic, assign) int clockRate; |
| 47 |
| 48 /** The number of channels (mono=1, stereo=2). */ |
| 49 @property(nonatomic, assign) int channels; |
| 50 |
| 51 - (instancetype)init NS_DESIGNATED_INITIALIZER; |
| 52 |
| 53 @end |
| 54 |
| 55 NS_ASSUME_NONNULL_END |
OLD | NEW |