How to get audio api working?


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?


You may want to look here for some ideas:


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.