mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
8a998d9134
In websites such as Facebook Live, timeout chains are used to drive the playback of a video or something similar in JavaScript. Throttling the minimum timeout values a tab playing a video from such websites in the background could make the timeout based scheduling of video playback to not work correctly, and cause audio buffer under-runs that are audible. In order to address this, other major browsers don't throttle timeouts in tabs that are playing audio. This brings us to parity to other browsers (even though we already do this for websites that use Web Audio since we've had similar bug reports using the Web Audio API.) The current audio agent setup that drives the tab audio notification icons is currently tracking whether a Window is playing audio. We use this setup to decide whether to throttle timeouts when a window goes into background. |
||
---|---|---|
.. | ||
crashtests | ||
AudioChannelAgent.cpp | ||
AudioChannelAgent.h | ||
AudioChannelService.cpp | ||
AudioChannelService.h | ||
moz.build | ||
nsIAudioChannelAgent.idl | ||
nsIAudioChannelService.idl |