1
I have an application for Google Chrome and I want it to emit a sound every time a notification is created, but in my tests I was not very successful =p
I don’t know if it’s some permission or if there really isn’t any way I can do it.
Do you know any way? (Detail: I wanted the js file in the background to do this)
What did you try? I imagine injecting an element
<audio>
via js should work.– bfavaretto
i tried to use an audio tag and js: new audio(''). play; none of the 2 worked =/
– Iago Bruno
And what format does the audio file have? I think it needs to be ogg.
– bfavaretto
Hm, I think I made a mistake, check out the format table: https://developer.mozilla.org/en-US/docs/HTML/Supported_media_formats
– bfavaretto
this link has no table =p
– Iago Bruno
There at the end has a compatibility table, by file format and browser.
– bfavaretto
Wow, that weird, now it worked =O Thanks o/
– Iago Bruno
Cool, I was already going to do a test, saved me work :) Now I’ll give you work: can you post the solution as a response to help future visitors? Thank you!
– bfavaretto