HTML5 - Playing Audio files tutorial?

JOHN PATTEN johnpatten at me.com
Fri Aug 25 15:09:39 EDT 2017


Hi Collin,

No, the mp3 will not play either. I must be missing a step.  :(

http://jpatten.on-rev.com/sylvan/HTNML5%20Test.html <http://jpatten.on-rev.com/sylvan/HTNML5%20Test.html>. (no audio plays)

http://jpatten.on-rev.com/sylvan/ <http://jpatten.on-rev.com/sylvan/>TestAudio2.mp3. (plays from browser)


> On Aug 25, 2017, at 11:47 AM, Colin Holgate via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> 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!
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list