WebSite X5Help Center

 
Jan Arp
Jan Arp
User

Soundbutton in website for use on Ipad  en

Auteur : Jan Arp
Visité 1157, Followers 1, Partagé 0  
Mots-clés :: button,ipad,music

Is it possible to make a website with websitex5 professional for ipad in which I can make buttons. By clicking on those buttons I want to start a music file (mp3, wav, aac etc.). Which file format should I use, so it will work on the Ipad, Iphone etc.

Posté le
2 RéPONSES - 2 UTILE
Bert R.
Bert R.
User

You mean somthing like this: http://bertspage.nl/wepapp/ [sample]

This is the code : 

<audio controls>
<source src="<span class="underline">http://www.Your url.com to the mp3" type="audio/mpeg">
<source src="radio_interview.ogg" type="audio/ogg">
</audio>

Replace the bold part of the code into the direction of your mp3 file on your server.

And put the code into your side, works perfect for Chrome.

Greets Bert. 

Lire plus
Posté le de Bert R.
Incomedia
Claudio D.
Incomedia

Hello Jan,

For iPad and iPhone you need to use the mp4 audio format (.m4a) so this will be played. You can use the audio video object and add there this file and this will work correctly on these devices with the m4a file.

Many thanks!

Lire plus
Posté le de Claudio D.