HTML5 - Playing Audio files tutorial?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

HTML5 - Playing Audio files tutorial?

Mike Kerner via use-livecode
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
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: HTML5 - Playing Audio files tutorial?

Mike Kerner via use-livecode
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 <[hidden email]> 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
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: HTML5 - Playing Audio files tutorial?

Mike Kerner via use-livecode
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 <[hidden email]> 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 <[hidden email]> 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
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode