3 ms·
This does some very wonky things in chromium based browsers if you switch to a different tab while it's playing. It plays normal audio for about 3 seconds, the
by horsawlarway 4y ago
This does some very wonky things in chromium based browsers if you switch to a different tab while it's playing.
It plays normal audio for about 3 seconds, then begins what seems like a very short loop of the last few notes - repeating the same sounds forever (or until you navigate back to the tab)
- gtrevorjay 4y agoIn a real app you'd definitely want to mute based on losing focus.
- deleted 4y ago[deleted]
- fire 4y agoI wonder if this is due to how background tab javascript execution is restricted when not in focus
- regular 4y agoSame in Safari. It's pretty cool actually. In the demo, it does as you say when you switch tabs: plays a few more notes in the right channel, then holds the left in a loop of the last sample.
- snvzz 4y agoMy guess is that track.processMusic(); isn't being called unless the tab is visible.