Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright 2015 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 // This file contains definitions of structures part of the RtpSender interface | |
| 12 // http://w3c.github.io/webrtc-pc/#rtcrtpsender-interface | |
| 13 | |
| 14 #ifndef WEBRTC_API_RTPPARAMETERS_H_ | |
| 15 #define WEBRTC_API_RTPPARAMETERS_H_ | |
| 16 | |
| 17 #include <vector> | |
| 18 | |
| 19 namespace webrtc { | |
|
pthatcher1
2016/03/12 01:21:03
FYI, you'll need to make sure you don't break the
| |
| 20 | |
| 21 struct RTCRtpEncodingParameters { | |
|
pthatcher1
2016/03/12 01:21:03
Can we please remove the RTC prefix and just call
skvlad
2016/03/15 21:18:17
Done.
| |
| 22 int max_bitrate_bps; | |
| 23 RTCRtpEncodingParameters() : max_bitrate_bps(-1) {} | |
|
pthatcher1
2016/03/12 01:21:03
You can just do this and not have to define the co
skvlad
2016/03/15 21:18:17
Done.
| |
| 24 }; | |
| 25 | |
| 26 struct RTCRtpParameters { | |
|
pthatcher1
2016/03/12 01:21:03
Can you give a comment pointing the standards doc
Taylor Brandstetter
2016/03/12 01:57:06
It's at the top of the file.
pthatcher1
2016/03/14 16:26:50
Ah, could you (Vlad) move it closer to the classes
skvlad
2016/03/15 21:18:17
Done.
| |
| 27 std::vector<RTCRtpEncodingParameters> encodings; | |
| 28 | |
| 29 static RTCRtpParameters CreateDefault() { | |
|
pthatcher1
2016/03/12 01:21:03
Do we really need this in the API?
skvlad
2016/03/15 21:18:17
Removed.
| |
| 30 RTCRtpParameters parameters; | |
| 31 parameters.encodings.push_back(RTCRtpEncodingParameters()); | |
| 32 return parameters; | |
| 33 } | |
| 34 }; | |
| 35 | |
| 36 } // namespace webrtc | |
| 37 | |
| 38 #endif // WEBRTC_API_RTPPARAMETERS_H_ | |
| OLD | NEW |