3 ms·
So, I've got a little hacky patch that _kind of_ does that, but only for <video> and <audio>, because we don't have access to flash's source code, so we can't h
by padenot 13y ago
So, I've got a little hacky patch that _kind of_ does that, but only for <video> and <audio>, because we don't have access to flash's source code, so we can't hook into it. This (only <audio> + <video> + Web Audio these days) is not really hard to do, I can guide a volunteer if someone feels like writing the patch (or part of it, even).
I've been thinking about dll interception stuff to make it work with flash, but I'm not sure if it can be done reliably.
- valarauca1 13y agoif you could contact me via email I'd be interested in trying.
- padenot 13y agopadenot at mozilla dot com, or #media on irc.mozilla.org (French timezone, I'm padenot, there).
- est 13y ago> I've been thinking about dll interception stuff In Win7 you get audio volume per process option when you click the speaker tray icon. So the OS does know the process source of audio Since Chrome is multi-process I think it's easy to identify the noisy process. Just an idea.
- jaredsohn 13y agoHe's talking about Firefox here. :) But anyway, major browsers (other than IE) -- even when tab per process -- only use a single Flash process for all tabs, so you cannot distinguish at the operating system level. Chrome is now able to show audio indicators because Flash is embedded via a new kind of plug-in (Pepper) which allows them to track it.
- cpeterso 13y agoSince Firefox knows which tabs embed Flash content and whether the Flash plugin process is playing audio, Firefox might be able to guess which tab is playing Flash audio. For example, if there is only one tab with Flash content. :)
- jaredsohn 13y agoBut due to ads, if many tabs are open then many will have Flash on them. Run Chrome, install my MuteTab extension (http://www.mutetab.com/ http://www.mutetab.com/), open a few tabs, and look at the extension popup to get an idea of how pervasive Flash is. (However, if you also run Adblock then it becomes a little more reasonable, since you've greatly reduced the number of tabs playing with Flash on them.) Yeah, you could look at which tabs were recently opened when sound started playing. But then once sound is playing, you won't be able to detect if another tab that plays sound was opened. And the sound might have come from a tab that had been open for awhile.