silent-audio

1.0.1 • Public • Published

silent-audio

Silent background audio to keep timers working.

Chrome and Firefox (and others) throttle timers in background tabs, but not if audio is playing (otherwise MSE Spotify would break).

This is the bare minimum to keep timers running. Doesn't stop throttling if the user explicitly mutes the tab.

require('silent-audio')()

Optionally, use an existing AudioContext:

var ctx = new AudioContext()
require('silent-audio')(ctx)

Readme

Keywords

none

Package Sidebar

Install

npm i silent-audio

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • rationalcoding