Bug 1180563 - Add pref to delay play of <video>s until they're visible. r=kinetik

This commit is contained in:
Chris Pearce
2015-07-09 11:10:16 +12:00
parent 70575827f4
commit 9ffe106f52
3 changed files with 56 additions and 16 deletions

View File

@@ -1374,6 +1374,11 @@ protected:
// playback.
bool mDisableVideo;
// True if we blocked either a play() call or autoplay because the
// media's owner doc was not visible. Only enforced when the pref
// media.block-play-until-visible=true.
bool mPlayBlockedBecauseHidden;
// An agent used to join audio channel service.
nsCOMPtr<nsIAudioChannelAgent> mAudioChannelAgent;