diff --git a/dom/media/MediaPrefs.h b/dom/media/MediaPrefs.h index 082695ae39a6..8bd06a774ab9 100644 --- a/dom/media/MediaPrefs.h +++ b/dom/media/MediaPrefs.h @@ -203,6 +203,8 @@ private: DECL_MEDIA_PREF("media.cubeb.sandbox", CubebSandbox, bool, false); DECL_MEDIA_PREF("media.videocontrols.lock-video-orientation", VideoOrientationLockEnabled, bool, false); + // Media Seamless Looping + DECL_MEDIA_PREF("media.seamless-looping", SeamlessLooping, bool, true); public: // Manage the singleton: static MediaPrefs& GetSingleton(); diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index d8b6af0d2e05..c7596832fdcd 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -436,6 +436,9 @@ pref("media.suspend-bkgnd-video.delay-ms", 10000); // reduce the resume latency and improve the user experience. pref("media.resume-bkgnd-video-on-tabhover", true);; +// Whether to enable media seamless looping. +pref("media.seamless-looping", true); + #ifdef MOZ_WEBRTC pref("media.navigator.enabled", true); pref("media.navigator.video.enabled", true);