HTML5 - Playing Audio files tutorial?

Colin Holgate colinholgate at gmail.com
Fri Aug 25 14:47:15 EDT 2017


Normally you would play MP3 or OGG in HTML5. Do MP3 files play ok?


> On Aug 25, 2017, at 11:06 AM, JOHN PATTEN via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Hi All,
> 
> I have followed the tutorial here on playing audio files, http://lessons.livecode.com/m/4071/l/742506-how-do-i-play-sound-files-in-html5 <http://lessons.livecode.com/m/4071/l/742506-how-do-i-play-sound-files-in-html5>
> 
> I have tried with both a wav file, and a m4a.  Neither of them seem to play.
> 
> Do I have to “include" the file in the Standalone Settings configuration panel, or can I just add it to my HTML5 project folder?
> 
> Also, the audio tag,
>  <audio id="myAudio">
>    <source src="piano-melody.wav" type="audio/wav">
>  </audio>
> 
> ...that can go right before the ending /body tag?
> 
> 
> Thank you!





More information about the use-livecode mailing list