Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Any event triggered when sound is played ?

Post Reply
thefunkyjoint
Posts: 460
Joined: Thu Aug 10, 2017 12:40 pm

Any event triggered when sound is played ?

Post 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 ?
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Any event triggered when sound is played ?

Post 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
thefunkyjoint
Posts: 460
Joined: Thu Aug 10, 2017 12:40 pm

Re: Any event triggered when sound is played ?

Post by thefunkyjoint »

Thank you , will try via JS.
Post Reply