Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect Audible Sound with JavaScript

Is there any way to detect whether a certain page is making noise using jscript? Some sort of environmental variable or something that tracks the status of the speakers? I'm attempting to write a script that puts an icon on the Tab Title if that Tab is making sound.

like image 383
Robert Toth Avatar asked Nov 05 '22 02:11

Robert Toth


1 Answers

No, this isn't possible.

Lots of plugins can make sound, and they all do it in their own way. There is no catch-all here.

Perhaps on Vista/7 where applications sound usage is actually kept track of, and when using a browser like Chrome that makes a separate process for each page, you might have more luck. It would involve figuring out which processes are playing sound, then figuring out what page each process had loaded. Through JavaScript though? No way.

like image 146
Brad Avatar answered Nov 09 '22 07:11

Brad