| 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 "RTCRtpCodecParameters+Private.h" | 11 #import "RTCRtpCodecParameters+Private.h" |
| 12 | 12 |
| 13 #import "webrtc/base/objc/NSString+StdString.h" | 13 #import "NSString+StdString.h" |
| 14 #import "webrtc/media/base/mediaconstants.h" | |
| 15 | 14 |
| 16 const NSString * const kRtxCodecMimeType = @(cricket::kRtxCodecName); | 15 #include "webrtc/media/base/mediaconstants.h" |
| 17 const NSString * const kRedCodecMimeType = @(cricket::kRedCodecName); | 16 |
| 18 const NSString * const kUlpfecCodecMimeType = @(cricket::kUlpfecCodecName); | 17 const NSString * const kRTCRtxCodecMimeType = @(cricket::kRtxCodecName); |
| 19 const NSString * const kOpusCodecMimeType = @(cricket::kOpusCodecName); | 18 const NSString * const kRTCRedCodecMimeType = @(cricket::kRedCodecName); |
| 20 const NSString * const kIsacCodecMimeType = @(cricket::kIsacCodecName); | 19 const NSString * const kRTCUlpfecCodecMimeType = @(cricket::kUlpfecCodecName); |
| 21 const NSString * const kL16CodecMimeType = @(cricket::kL16CodecName); | 20 const NSString * const kRTCOpusCodecMimeType = @(cricket::kOpusCodecName); |
| 22 const NSString * const kG722CodecMimeType = @(cricket::kG722CodecName); | 21 const NSString * const kRTCIsacCodecMimeType = @(cricket::kIsacCodecName); |
| 23 const NSString * const kIlbcCodecMimeType = @(cricket::kIlbcCodecName); | 22 const NSString * const kRTCL16CodecMimeType = @(cricket::kL16CodecName); |
| 24 const NSString * const kPcmuCodecMimeType = @(cricket::kPcmuCodecName); | 23 const NSString * const kRTCG722CodecMimeType = @(cricket::kG722CodecName); |
| 25 const NSString * const kPcmaCodecMimeType = @(cricket::kPcmaCodecName); | 24 const NSString * const kRTCIlbcCodecMimeType = @(cricket::kIlbcCodecName); |
| 26 const NSString * const kDtmfCodecMimeType = @(cricket::kDtmfCodecName); | 25 const NSString * const kRTCPcmuCodecMimeType = @(cricket::kPcmuCodecName); |
| 27 const NSString * const kComfortNoiseCodecMimeType = @(cricket::kComfortNoiseCode
cName); | 26 const NSString * const kRTCPcmaCodecMimeType = @(cricket::kPcmaCodecName); |
| 27 const NSString * const kRTCDtmfCodecMimeType = @(cricket::kDtmfCodecName); |
| 28 const NSString * const kRTCComfortNoiseCodecMimeType = |
| 29 @(cricket::kComfortNoiseCodecName); |
| 28 const NSString * const kVp8CodecMimeType = @(cricket::kVp8CodecName); | 30 const NSString * const kVp8CodecMimeType = @(cricket::kVp8CodecName); |
| 29 const NSString * const kVp9CodecMimeType = @(cricket::kVp9CodecName); | 31 const NSString * const kVp9CodecMimeType = @(cricket::kVp9CodecName); |
| 30 const NSString * const kH264CodecMimeType = @(cricket::kH264CodecName); | 32 const NSString * const kH264CodecMimeType = @(cricket::kH264CodecName); |
| 31 | 33 |
| 32 @implementation RTCRtpCodecParameters | 34 @implementation RTCRtpCodecParameters |
| 33 | 35 |
| 34 @synthesize payloadType = _payloadType; | 36 @synthesize payloadType = _payloadType; |
| 35 @synthesize mimeType = _mimeType; | 37 @synthesize mimeType = _mimeType; |
| 36 @synthesize clockRate = _clockRate; | 38 @synthesize clockRate = _clockRate; |
| 37 @synthesize channels = _channels; | 39 @synthesize channels = _channels; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 54 - (webrtc::RtpCodecParameters)nativeParameters { | 56 - (webrtc::RtpCodecParameters)nativeParameters { |
| 55 webrtc::RtpCodecParameters parameters; | 57 webrtc::RtpCodecParameters parameters; |
| 56 parameters.payload_type = _payloadType; | 58 parameters.payload_type = _payloadType; |
| 57 parameters.mime_type = [NSString stdStringForString:_mimeType]; | 59 parameters.mime_type = [NSString stdStringForString:_mimeType]; |
| 58 parameters.clock_rate = _clockRate; | 60 parameters.clock_rate = _clockRate; |
| 59 parameters.channels = _channels; | 61 parameters.channels = _channels; |
| 60 return parameters; | 62 return parameters; |
| 61 } | 63 } |
| 62 | 64 |
| 63 @end | 65 @end |
| OLD | NEW |