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 NS_ASSUME_NONNULL_BEGIN | 13 NS_ASSUME_NONNULL_BEGIN |
14 | 14 |
15 @interface RTCRtpEncodingParameters : NSObject | 15 @interface RTCRtpCodecParameters : NSObject |
16 | 16 |
17 /** Controls whether the encoding is currently transmitted. */ | 17 /** The RTP payload type. */ |
18 @property(nonatomic, assign) BOOL isActive; | 18 @property(nonatomic, assign) int payloadType; |
tkchin_webrtc
2016/04/14 17:52:51
ditto enum?
Taylor Brandstetter
2016/04/14 18:17:22
An enum for every value from 0 to 127?
pthatcher1
2016/04/14 18:27:15
And since the values are dynamically assigned, at
tkchin_webrtc
2016/04/14 18:30:08
Interesting. How would a client assign this payloa
Taylor Brandstetter
2016/04/14 20:01:47
If a client wanted to add a new codec without SDP
tkchin_webrtc
2016/04/14 21:11:47
Can we add a pointer to documentation for that, or
Taylor Brandstetter
2016/04/14 22:03:30
Done.
| |
19 | 19 |
20 /** The maximum bitrate to use for the encoding, or nil if there is no | 20 /** |
21 * limit. | 21 * The codec MIME type. Valid types are listed in: |
22 * http://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-param eters-2 | |
22 */ | 23 */ |
23 @property(nonatomic, copy, nullable) NSNumber *maxBitrateBps; | 24 @property(nonatomic, nonnull) NSString *mimeType; |
tkchin_webrtc
2016/04/14 17:52:51
Use an enum for this and translate to what the C++
Taylor Brandstetter
2016/04/14 18:17:22
There are a pretty lot of possibilities (100+) and
tkchin_webrtc
2016/04/14 18:30:08
Ok. In that case please add supported strings as c
Taylor Brandstetter
2016/04/14 20:01:47
Ok. I copied them from mediaconstants.h/cc
| |
25 | |
26 /** The codec clock rate expressed in Hertz. */ | |
27 @property(nonatomic, assign) int clockRate; | |
28 | |
29 /** The number of channels (mono=1, stereo=2). */ | |
30 @property(nonatomic, assign) int channels; | |
24 | 31 |
25 - (instancetype)init NS_DESIGNATED_INITIALIZER; | 32 - (instancetype)init NS_DESIGNATED_INITIALIZER; |
26 | 33 |
27 @end | 34 @end |
28 | 35 |
29 NS_ASSUME_NONNULL_END | 36 NS_ASSUME_NONNULL_END |
OLD | NEW |