简体   繁体   中英

using javascript to play audio just on iPad

Rather than repeat a long javascript for playing audio, here is the link: webpages.charter.net/jolove/Includes/play_song.js :.

This plays for any desktop browser (Mac or Windows), but not for my iPad.

Here is the calling website: webpages.charter.net/jolove/Escort_Folder/Dedication_Poem_iOS.html

This is really bugging me, so I would definitely appreciate any help on this, any help at all.

John Love

Not sure exactly what your question is, but you can use the HTML5 <audio> tag which is supported by the iPad. Check out http://developer.apple.com/safaridemos/audio.php or just google "HTML5 audio".

I'm almost forced to conclude that iPad will not play audio files.

Here is a very fresh site , where I use the audio.
But, this time, I got a button that says "cannot play audio file". For the sake of completeness, here is the included webpages.charter.net/jolove/Escort_Folder/js/play_song.js

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM