diff --git a/configure.in b/configure.in index ad0169e38138..0dd1a8628160 100644 --- a/configure.in +++ b/configure.in @@ -4244,6 +4244,7 @@ MOZ_MEDIA= MOZ_OPUS=1 MOZ_WEBM=1 MOZ_DASH=1 +MOZ_WMF= MOZ_WEBRTC=1 MOZ_PEERCONNECTION= MOZ_SRTP= @@ -5419,6 +5420,29 @@ if test -n "$MOZ_DASH"; then fi fi; + +dnl ======================================================== +dnl = Windows Media Foundation support +dnl ======================================================== +if test "$OS_ARCH" = "WINNT"; then + dnl Enable Windows Media Foundation support by default. + dnl Note our minimum SDK version is Windows 7 SDK, so we are (currently) + dnl guaranteed to have a recent-enough SDK to build WMF. + MOZ_WMF=1 +fi + +MOZ_ARG_DISABLE_BOOL(wmf, +[ --disable-wmf Disable support for Windows Media Foundation], + MOZ_WMF=, + MOZ_WMF=1) + +if test -n "$MOZ_WMF"; then + AC_DEFINE(MOZ_WMF) + MOZ_SYDNEYAUDIO=1 + MOZ_CUBEB=1 + MOZ_MEDIA=1 +fi; + dnl ======================================================== dnl = Enable media plugin support dnl ======================================================== @@ -8831,6 +8855,7 @@ AC_SUBST(MOZ_TREMOR) AC_SUBST(MOZ_OPUS) AC_SUBST(MOZ_WEBM) AC_SUBST(MOZ_DASH) +AC_SUBST(MOZ_WMF) AC_SUBST(MOZ_MEDIA_PLUGINS) AC_SUBST(MOZ_OMX_PLUGIN) AC_SUBST(MOZ_VP8_ERROR_CONCEALMENT) diff --git a/modules/libpref/src/init/all.js b/modules/libpref/src/init/all.js index a0e4caff8c82..66b056916a22 100644 --- a/modules/libpref/src/init/all.js +++ b/modules/libpref/src/init/all.js @@ -150,6 +150,9 @@ pref("media.cache_size", 512000); // Master HTML5 media volume scale. pref("media.volume_scale", "1.0"); +#ifdef MOZ_WMF +pref("media.windows-media-foundation.enabled", false); +#endif #ifdef MOZ_RAW pref("media.raw.enabled", true); #endif