Bug 1505284 - P2. Use system's h264 decoder for webrtc call. r=padenot
☠☠ backed out by eb6978b08417 ☠ ☠
authorJean-Yves Avenard <jyavenard@mozilla.com>
Tue, 20 Nov 2018 17:44:21 +0000
changeset 503775 1d3eb26cfeac0fd13ab376ab86cc1b2ccd1fdc82
parent 503774 05fd5592620612161cebe518f6ec446ec28ecf3e
child 503776 53f688575d39c4d28c25db6c87e5892b8c0ea9b3
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot
bugs1505284
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1505284 - P2. Use system's h264 decoder for webrtc call. r=padenot All H264 system's decoders now handle low latency mode and are typically hardware accelerated. Differential Revision: https://phabricator.services.mozilla.com/D12432
modules/libpref/init/StaticPrefList.h
modules/libpref/init/all.js
--- a/modules/libpref/init/StaticPrefList.h
+++ b/modules/libpref/init/StaticPrefList.h
@@ -1121,17 +1121,17 @@ VARCACHE_PREF(
    MediaNavigatorMediadatadecoderEnabled,
   bool, false
 )
 // Use MediaDataDecoder API for WebRTC. This includes hardware acceleration for
 // decoding.
 VARCACHE_PREF(
   "media.navigator.mediadatadecoder_h264_enabled",
    MediaNavigatorMediadatadecoderH264Enabled,
-  bool, false
+  RelaxedAtomicBool, true
 )
 #endif // MOZ_WEBRTC
 
 #ifdef MOZ_OMX
 VARCACHE_PREF(
   "media.omx.enabled",
    MediaOmxEnabled,
   bool, false
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -458,16 +458,17 @@ pref("media.navigator.video.default_widt
 pref("media.navigator.video.default_height",0); // adaptive default
 pref("media.peerconnection.enabled", true);
 pref("media.peerconnection.video.enabled", true);
 pref("media.navigator.video.max_fs", 12288); // Enough for 2048x1536
 pref("media.navigator.video.max_fr", 60);
 pref("media.navigator.video.h264.level", 31); // 0x42E01f - level 3.1
 pref("media.navigator.video.h264.max_br", 0);
 pref("media.navigator.video.h264.max_mbps", 0);
+pref("media.navigator.mediadatadecoder_h264_enabled", true);
 pref("media.peerconnection.video.vp9_enabled", true);
 pref("media.peerconnection.video.vp9_preferred", false);
 pref("media.getusermedia.browser.enabled", false);
 pref("media.getusermedia.channels", 0);
 #if defined(ANDROID)
 pref("media.getusermedia.camera.off_while_disabled.enabled", false);
 pref("media.getusermedia.microphone.off_while_disabled.enabled", false);
 #else