Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: webrtc/api/objc/RTCRtpCodecParameters.mm

Issue 1885473004: Adding codecs to the RtpParameters returned by an RtpSender. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updating build files. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 "RTCRtpCodecParameters+Private.h"
12
13 @implementation RTCRtpCodecParameters
14
15 @synthesize payloadType = _payloadType;
16 @synthesize mimeType = _mimeType;
17 @synthesize clockRate = _clockRate;
18 @synthesize channels = _channels;
19
20 - (instancetype)init {
21 return [super init];
22 }
23
24 - (instancetype)initWithNativeParameters:
25 (const webrtc::RtpCodecParameters &)nativeParameters {
26 if (self = [self init]) {
27 _payloadType = nativeParameters.payload_type;
28 _mimeType = [NSString stringForStdString:nativeParameters.mime_type];
29 _clockRate = nativeParameters.clock_rate;
30 _channels = nativeParameters.channels;
31 _isActive = nativeParameters.active;
32 }
33 return self;
34 }
35
36 - (webrtc::RtpCodecParameters)nativeParameters {
37 webrtc::RtpCodecParameters parameters;
38 parameters.payload_type = _payloadType;
39 parameters.mime_type = [NSString stdStringForString:_mimeType];
skvlad 2016/04/14 01:03:56 this probably requires #import "webrtc/base/objc/N
Taylor Brandstetter 2016/04/14 01:43:45 Done.
40 parameters.clock_rate = _clockRate;
41 parameters.channels = _channels;
42 return parameters;
43 }
44
45 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698