How to get audio api working?


#1

I’m trying to build a simple audio player.
Really it just needs to play a single audio file.

new Audio() doesn’t seem to work.

App threw an error when running [ReferenceError: Audio is not defined]

am i missing something?


#2

You may want to look here for some ideas:


#3

Did you run that in the main or renderer process? The main process does not have access to web APIs and will throw errors if you try to use them.