Audio in browser
ullvieib

I have no luck with audio in browsers after export of source code.

I tried to do as in the tutorial:

https://www.youtube.com/watch?v=TCDtrBrDut8

(Except that I converted the files at http://audio.online-convert.com/ instead)

 

Audio works fine in editor, but not in browsers after export.

 

(Attach source test file)

All 3 Comments
Gio

Hi

 

The audio files need to be loaded with the scene, i.e. they need to be added to the Audio tab in the scene properties (see picture below).

 

audio_load.png

 

Also be aware that on mobile devices, you need to at least interact with the page once before audio can be played. If you have something that just plays on load, it will work on desktop browsers but will be blocked by most mobile browsers. It's a good idea to have a "click to start" button somewhere before playing audio.

ullvieib

Thank you :)

This solve my problem!

I propose adding a comment to the tutorial on Youtube.

peterdox

Happy to help you. my favourite tool is mp3converter.net. Its working fine for me no issues. Its free tool.

Post a reply
Add Attachment
Submit Reply
Login to Reply