| Index: content/renderer/media/rtc_peer_connection_handler.cc
|
| diff --git a/content/renderer/media/rtc_peer_connection_handler.cc b/content/renderer/media/rtc_peer_connection_handler.cc
|
| index 17a929a7f463b6abfbfcd64fe04afef4cd856b07..b7095b485acc64bea22be6d66c74e25e20a8ce22 100644
|
| --- a/content/renderer/media/rtc_peer_connection_handler.cc
|
| +++ b/content/renderer/media/rtc_peer_connection_handler.cc
|
| @@ -327,12 +327,13 @@ void CopyConstraintsIntoRtcConfiguration(
|
| configuration->suspend_below_min_bitrate = ConstraintToOptional(
|
| constraints, &blink::WebMediaTrackConstraintSet::
|
| googEnableVideoSuspendBelowMinBitrate);
|
| - // TODO: Special treatment for screencast min bitrate, since it's an integer.
|
| - // if (FindConstraint(constraints,
|
| - // MediaConstraintsInterface::kScreencastMinBitrate,
|
| - // &configuration->screencast_min_bitrate, NULL)) {
|
| - // configuration->override_screencast_min_bitrate = true;
|
| - // }
|
| + int rate;
|
| + if (GetConstraintValueAsInteger(
|
| + constraints,
|
| + &blink::WebMediaTrackConstraintSet::googScreencastMinBitrate,
|
| + &rate)) {
|
| + configuration->screencast_min_bitrate = rtc::Optional<int>(rate);
|
| + }
|
| configuration->combined_audio_video_bwe = ConstraintToOptional(
|
| constraints,
|
| &blink::WebMediaTrackConstraintSet::googCombinedAudioVideoBwe);
|
|
|