Sound management of tabs

Hi guys!
I want to have a plugin, that would allow to have sound only on 1 tab at a time. For example you’re playing youtube all day for music, but then you come across another youtube video, 2 minutes, perhaps a cat singing, so instead switching tabs, pausing, and switching back, I’d automatically mute the previous one, and unmute when the second video finishes.
The latest Firefox release with tabs notification seems to eas this quite :slight_smile:

So the question is, what is the API to see

  • what tabs are playing music (probably event based?)
  • how to mute and unmute a tab?

Couldn’t find these in doc.

Cheers,
Gabor

Here are some addons that you might find interesting:

https://addons.mozilla.org/en-US/firefox/addon/mute-tab/?src=search

https://addons.mozilla.org/en-US/firefox/addon/noise-control/?src=search

NoiseControl addon should be exactly relavent to what you need. The addon was recently discontinued as that feature landed into Firefox.