Page 1 of 1

Check if a TChromium is playing any sound ?

Posted: Wed Mar 22, 2023 6:46 pm
by thefunkyjoint
Is there a way to check if the current url is playing any sound ? For instance, i'd like to put a speaker icon on a TChromium tab if it's playing sound.

Re: Check if a TChromium is playing any sound ?

Posted: Sat Mar 25, 2023 11:15 am
by salvadordf
Hi,

The API hasn't changed much in this regard. We're still in the same situation as last year :
https://www.briskbard.com/forum/viewtopic.php?f=8&t=2030

Try using the "Media" domain of the DevTools protocol :
https://chromedevtools.github.io/devtools-protocol/tot/Media/

I haven't tested it but perhaps you can receive an event when a player is running.