зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1339244: add minimum bandwidth estimate support back in; lost in bug 1250356 r=ng
MozReview-Commit-ID: HCBsaoClerh
This commit is contained in:
Родитель
8e94f85a7d
Коммит
6286ec73d4
|
@ -534,6 +534,19 @@ WebrtcVideoConduit::ConfigureSendMediaCodec(const VideoCodecConfig* codecConfig)
|
|||
height = mSendingHeight;
|
||||
// Bitrates are set in the loop below
|
||||
}
|
||||
} else if (mMinBitrateEstimate) {
|
||||
// Only do this at the start; use "have we send a frame" as a reasonable stand-in.
|
||||
// min <= start <= max (which can be -1, note!)
|
||||
webrtc::Call::Config::BitrateConfig config;
|
||||
config.min_bitrate_bps = mMinBitrateEstimate;
|
||||
if (config.start_bitrate_bps < mMinBitrateEstimate) {
|
||||
config.start_bitrate_bps = mMinBitrateEstimate;
|
||||
}
|
||||
if (config.max_bitrate_bps > 0 &&
|
||||
config.max_bitrate_bps < mMinBitrateEstimate) {
|
||||
config.max_bitrate_bps = mMinBitrateEstimate;
|
||||
}
|
||||
mCall->Call()->SetBitrateConfig(config);
|
||||
}
|
||||
|
||||
for (size_t idx = streamCount - 1; streamCount > 0; idx--, streamCount--) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче