Bug 654787 - part1: Add pref for audio seamless looping; r=jwwang

MozReview-Commit-ID: 1md5AxHG8NA

--HG--
extra : rebase_source : c13002de65c523a508f01564cc2730aff4a36086
This commit is contained in:
Chun-Min Chang 2017-11-08 13:43:08 +08:00
parent a3c09a51bc
commit 447c6c888f
2 changed files with 5 additions and 0 deletions

View File

@ -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();

View File

@ -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);