Page 1 of 1

Any event triggered when sound is played ?

Posted: Wed Jan 17, 2024 7:00 pm
by thefunkyjoint
I'm trying to achieve the following task on my tabbed browser application :

When a page plays a sound (usually due to a notification), i will highlight the tab with the browser that played the sound, so the user can access it faster.

Is there any event i could use to catch when the sound is played ?

Re: Any event triggered when sound is played ?

Posted: Thu Jan 18, 2024 1:41 pm
by salvadordf
Hi,

CEF hasn't changed the audio handler recently and this is still true :
https://www.briskbard.com/forum/viewtopic.php?t=2030

Perhaps you can intercept some JavaScript function that plays that sound :
https://stackoverflow.com/questions/3406467/can-i-intercept-a-function-called-directly

Re: Any event triggered when sound is played ?

Posted: Fri Jan 19, 2024 12:11 am
by thefunkyjoint
Thank you , will try via JS.