This change allows the application to limit the bitrate of the outgoing audio and video streams at runtime. The API roughly follows the WebRTC API draft, defining the RTCRtpParameters structure witn exactly one encoding (simulcast streams are not exposed in the API for now). (https://www.w3.org/TR/webrtc/#idl-def-RTCRtpParameters) BUG= Review URL: https://codereview.webrtc.org/1788583004 Cr-Commit-Position: refs/heads/master@{#12025}
31 lines
866 B
C++
31 lines
866 B
C++
/*
|
|
* Copyright 2015 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.
|
|
*/
|
|
|
|
#ifndef WEBRTC_API_RTPPARAMETERS_H_
|
|
#define WEBRTC_API_RTPPARAMETERS_H_
|
|
|
|
#include <vector>
|
|
|
|
namespace webrtc {
|
|
|
|
// These structures are defined as part of the RtpSender interface.
|
|
// See http://w3c.github.io/webrtc-pc/#rtcrtpsender-interface for details.
|
|
struct RtpEncodingParameters {
|
|
int max_bitrate_bps = -1;
|
|
};
|
|
|
|
struct RtpParameters {
|
|
std::vector<RtpEncodingParameters> encodings;
|
|
};
|
|
|
|
} // namespace webrtc
|
|
|
|
#endif // WEBRTC_API_RTPPARAMETERS_H_
|