From ade99a41e992886d98f67c3f521b239457e17bba Mon Sep 17 00:00:00 2001 From: Randell Jesup Date: Sun, 31 Aug 2014 11:43:43 -0400 Subject: [PATCH] Bug 1060864: change default bandwidth settings for b2g r=jib,rs=jesup --- modules/libpref/init/all.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 3e9a7d9d4f7..16621b564de 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -308,6 +308,11 @@ pref("media.navigator.video.h264.max_br", 700); // 8x10 pref("media.navigator.video.h264.max_mbps", 11880); // CIF@30fps pref("media.peerconnection.video.h264_enabled", false); pref("media.getusermedia.aec", 4); +// Gonk typically captures at QVGA, and so min resolution is QQVGA or +// 160x120; 100Kbps is plenty for that. +pref("media.peerconnection.video.min_bitrate", 100); +pref("media.peerconnection.video.start_bitrate", 220); +pref("media.peerconnection.video.max_bitrate", 1000); #else pref("media.navigator.video.default_width",0); // adaptive default pref("media.navigator.video.default_height",0); // adaptive default @@ -321,10 +326,12 @@ pref("media.navigator.video.h264.max_mbps", 0); pref("media.peerconnection.video.h264_enabled", false); pref("media.getusermedia.aec", 1); pref("media.getusermedia.browser.enabled", true); -#endif +// Desktop is typically VGA capture or more; and qm_select will not drop resolution +// below 1/2 in each dimension (or so), so QVGA (320x200) is the lowest here usually. pref("media.peerconnection.video.min_bitrate", 200); pref("media.peerconnection.video.start_bitrate", 300); pref("media.peerconnection.video.max_bitrate", 2000); +#endif pref("media.navigator.permission.disabled", false); pref("media.peerconnection.default_iceservers", "[{\"url\": \"stun:stun.services.mozilla.com\"}]"); pref("media.peerconnection.trickle_ice", true);