I can’t seem to find any Example Projects for WebAudioPlayer. My goal is pretty simple; trigger sounds to notify user of events in the web app. Any samples would be great, thanks!
BTW: These are simple small files, like 50k “ding.mp3” type of stuff.
Here is a simple example using WebAudioPlayer:
- You have to copy your mp3 files in a Build Step
- Add a WebAudioPlayer with HasController property turned off
- In the WebPage.Opening event, prepare a WebFile using one of the files you’ve copied in the Build Step and point the WebAudioPlayer.URL property to that WebFile URL
- Use WebAudioPlayer.Play whenever you want
The code:
https://github.com/piradoiv/web-audio-player-example/archive/refs/heads/main.zip
1 Like
@Ricardo_Cruz this is perfect, thanks very much - it’s so simple yet so elusive.
1 Like