Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Unified Diff: remoting/protocol/webrtc_transport.cc

Issue 2782523003: [Remoting Host] Supporting WebRTC VP9 streaming (Closed)
Patch Set: PTAL Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/webrtc_transport.cc
diff --git a/remoting/protocol/webrtc_transport.cc b/remoting/protocol/webrtc_transport.cc
index 693521c382bfca0ed2257de473743103d62eaaa0..1b40c6cd76ac3c552b8479bcbef6ca82d6a355bb 100644
--- a/remoting/protocol/webrtc_transport.cc
+++ b/remoting/protocol/webrtc_transport.cc
@@ -80,6 +80,15 @@ void UpdateCodecParameters(SdpMessage* sdp_message, bool incoming) {
LOG(FATAL) << "VP8 not found in SDP generated by WebRTC.";
}
}
+ if (sdp_message->has_video() &&
+ !sdp_message->AddCodecParameter(
+ "VP9", "x-google-min-bitrate=1000; x-google-max-bitrate=100000")) {
+ if (incoming) {
+ LOG(WARNING) << "VP9 not found in an incoming SDP.";
Sergey Ulanov 2017/03/31 19:23:11 I think we should log this message only of neither
Yuwei 2017/04/03 22:29:10 Done.
+ } else {
+ LOG(FATAL) << "VP9 not found in SDP generated by WebRTC.";
+ }
+ }
// Update SDP format to use 160kbps stereo for opus codec.
if (sdp_message->has_audio() &&

Powered by Google App Engine
This is Rietveld 408576698