| Index: remoting/protocol/webrtc_transport.cc
|
| diff --git a/remoting/protocol/webrtc_transport.cc b/remoting/protocol/webrtc_transport.cc
|
| index 693521c382bfca0ed2257de473743103d62eaaa0..fbacd2c418048397a49b83abb67c1c7f25da40c2 100644
|
| --- a/remoting/protocol/webrtc_transport.cc
|
| +++ b/remoting/protocol/webrtc_transport.cc
|
| @@ -71,13 +71,17 @@ void UpdateCodecParameters(SdpMessage* sdp_message, bool incoming) {
|
| // TODO(isheriff): The need for this should go away once we have a proper
|
| // API to provide max bitrate for the case of handing over encoded
|
| // frames to webrtc.
|
| - if (sdp_message->has_video() &&
|
| - !sdp_message->AddCodecParameter(
|
| - "VP8", "x-google-min-bitrate=1000; x-google-max-bitrate=100000")) {
|
| - if (incoming) {
|
| - LOG(WARNING) << "VP8 not found in an incoming SDP.";
|
| - } else {
|
| - LOG(FATAL) << "VP8 not found in SDP generated by WebRTC.";
|
| + if (sdp_message->has_video()) {
|
| + bool param_added = sdp_message->AddCodecParameter(
|
| + "VP8", "x-google-min-bitrate=1000; x-google-max-bitrate=100000");
|
| + param_added |= sdp_message->AddCodecParameter(
|
| + "VP9", "x-google-min-bitrate=1000; x-google-max-bitrate=100000");
|
| + if (!param_added) {
|
| + if (incoming) {
|
| + LOG(WARNING) << "Neither of VP8/VP9 is found in an incoming SDP.";
|
| + } else {
|
| + LOG(FATAL) << "Neither of VP8/VP9 is found in SDP generated by WebRTC.";
|
| + }
|
| }
|
| }
|
|
|
|
|