Chromium Code Reviews| Index: webrtc/api/objc/RTCRtpCodecParameters.h |
| diff --git a/webrtc/api/objc/RTCRtpCodecParameters.h b/webrtc/api/objc/RTCRtpCodecParameters.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f79bcf6efa6f6bd0245e8b7361fb6e5b041fcab4 |
| --- /dev/null |
| +++ b/webrtc/api/objc/RTCRtpCodecParameters.h |
| @@ -0,0 +1,52 @@ |
| +/* |
| + * Copyright 2016 The WebRTC project authors. All Rights Reserved. |
| + * |
| + * Use of this source code is governed by a BSD-style license |
| + * that can be found in the LICENSE file in the root of the source |
| + * tree. An additional intellectual property rights grant can be found |
| + * in the file PATENTS. All contributing project authors may |
| + * be found in the AUTHORS file in the root of the source tree. |
| + */ |
| + |
| +#import <Foundation/Foundation.h> |
| + |
| +NS_ASSUME_NONNULL_BEGIN |
| + |
| +extern NSString * const kRtxCodecMimeType; |
|
tkchin_webrtc
2016/04/14 21:11:47
nit: const NSString * const?
Taylor Brandstetter
2016/04/14 22:03:30
Done.
|
| +extern NSString * const kRedCodecMimeType; |
| +extern NSString * const kUlpfecCodecMimeType; |
| +extern NSString * const kOpusCodecMimeType; |
| +extern NSString * const kIsacCodecMimeType; |
| +extern NSString * const kL16CodecMimeType; |
| +extern NSString * const kG722CodecMimeType; |
| +extern NSString * const kIlbcCodecMimeType; |
| +extern NSString * const kPcmuCodecMimeType; |
| +extern NSString * const kPcmaCodecMimeType; |
| +extern NSString * const kDtmfCodecMimeType; |
| +extern NSString * const kComfortNoiseCodecMimeType; |
| +extern NSString * const kVp8CodecMimeType; |
| +extern NSString * const kVp9CodecMimeType; |
| +extern NSString * const kH264CodecMimeType; |
| + |
| +@interface RTCRtpCodecParameters : NSObject |
| + |
| +/** The RTP payload type. */ |
| +@property(nonatomic, assign) int payloadType; |
| + |
| +/** |
| + * The codec MIME type. Valid types are listed in: |
|
tkchin_webrtc
2016/04/14 21:11:47
nit: add short comment that points at above consta
Taylor Brandstetter
2016/04/14 22:03:31
Done.
|
| + * http://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-parameters-2 |
| + */ |
| +@property(nonatomic, nonnull) NSString *mimeType; |
| + |
| +/** The codec clock rate expressed in Hertz. */ |
| +@property(nonatomic, assign) int clockRate; |
| + |
| +/** The number of channels (mono=1, stereo=2). */ |
| +@property(nonatomic, assign) int channels; |
| + |
| +- (instancetype)init NS_DESIGNATED_INITIALIZER; |
| + |
| +@end |
| + |
| +NS_ASSUME_NONNULL_END |