Chrome Notifications API

84 views
Skip to first unread message

Jahfari Coumarbatch

unread,
Feb 19, 2025, 9:58:24 AMFeb 19
to Chromium Extensions
I have tried everything that I have seen to be able to play an audio file through the background.js of my chrome extension but either nothing happens or I get errors. I'm assuming that I've not found the right method for doing this? does anyone know what is requied to do this?

Oliver Dunk

unread,
Feb 19, 2025, 10:51:31 AMFeb 19
to Jahfari Coumarbatch, Chromium Extensions
Hi Jahfari,

Are you using Manifest V3?

If so, the suggested approach would be to open an offscreen document and call the audio APIs from there: https://developer.chrome.com/docs/extensions/reference/api/offscreen

Let me know if you have any questions.
Oliver Dunk | DevRel, Chrome Extensions | https://developer.chrome.com/ | London, GB


On Wed, Feb 19, 2025 at 2:58 PM Jahfari Coumarbatch <jit...@gmail.com> wrote:
I have tried everything that I have seen to be able to play an audio file through the background.js of my chrome extension but either nothing happens or I get errors. I'm assuming that I've not found the right method for doing this? does anyone know what is requied to do this?

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/56721630-faa1-4c1c-9793-8e4ef10127d6n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages