debugger22 / github-audio

Listen to music generated by events happening across GitHub :octocat: 🎷
https://github.audio
MIT License
1.74k stars 99 forks source link

Stops playing in background in Safari #29

Open AlexPoulsen opened 8 years ago

AlexPoulsen commented 8 years ago

After some amount of time in the background, in a different tab specifically, swells stop playing and eventually everything stops. Occasionally sounds will play but it seems random.

AlexPoulsen commented 8 years ago

Safari 10.0 (12602.1.50.0.10) on macOS Sierra 10.12

Arinerron commented 8 years ago

Works for me...

evansims commented 8 years ago

Safari automatically throttles background tabs to reduce power consumption and memory use, gradually over time. They added it back in Mavericks. You'll notice similar behavior if you keep the tab open, but hide Safari (completely) behind a foreground window or in the Dock. If you restore Safari and/or the tab to the foreground it should pick back up where it left off. Unfortunately I don't believe there's any thing developers can do to override that functionality.

AlexPoulsen commented 8 years ago

ok, thanks I'll probably use helium for this