Enable setting the maximum bitrate limit in RtpSender.
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}
This commit is contained in:
@ -199,6 +199,14 @@ void AudioRtpSender::SetAudioSend() {
|
||||
provider_->SetAudioSend(ssrc_, track_->enabled(), options, source);
|
||||
}
|
||||
|
||||
RtpParameters AudioRtpSender::GetParameters() const {
|
||||
return provider_->GetAudioRtpParameters(ssrc_);
|
||||
}
|
||||
|
||||
bool AudioRtpSender::SetParameters(const RtpParameters& parameters) {
|
||||
return provider_->SetAudioRtpParameters(ssrc_, parameters);
|
||||
}
|
||||
|
||||
VideoRtpSender::VideoRtpSender(VideoTrackInterface* track,
|
||||
const std::string& stream_id,
|
||||
VideoProviderInterface* provider)
|
||||
@ -330,4 +338,12 @@ void VideoRtpSender::SetVideoSend() {
|
||||
provider_->SetVideoSend(ssrc_, track_->enabled(), &options);
|
||||
}
|
||||
|
||||
RtpParameters VideoRtpSender::GetParameters() const {
|
||||
return provider_->GetVideoRtpParameters(ssrc_);
|
||||
}
|
||||
|
||||
bool VideoRtpSender::SetParameters(const RtpParameters& parameters) {
|
||||
return provider_->SetVideoRtpParameters(ssrc_, parameters);
|
||||
}
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
Reference in New Issue
Block a user