What's new

using javascript to play audio on ipad

john love

iPF Noob
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
 
Old thread is old, but I thought I'd at least drop an answer in here for future generations:

Audio on the ipad CANNOT and WILL NOT autoplay via javascript or anything else on the iPad, as there is an iOS level restriction that requires the user to interact with the audio element before it will download, as to not incur datarate charges for 3G network usage without the user's consent.

The audio element simply doesn't exist until the user clicks on it (and no, making your own button for the user to click on doesn't count).
 

Most reactions

Latest posts

Back
Top