Cant auto play audio in iPad safari...

Discussion in 'iPad Development' started by kristievalerie, Aug 21, 2010.

  1. kristievalerie

    kristievalerie iPF Noob

    Joined:
    Aug 21, 2010
    Messages:
    1
    Thanks Received:
    0
    Trophy Points:
    0
    Location:
    HK
    Ratings:
    +0 / 0
    I have write a script to play, its fail, how to write a script to auto play audio in ipad? audio only can play when i click link, it can not auto play, even i put into bady onload. :confused:


    <audio src="alert.mp3" id="audio" autobuffer="autobuffer" autoplay="autoplay"></audio>
    <script type="text/javascript">
    function playAudio() {
    var audio = document.getElementById('audio');
    audio.play();
    }
    playAudio();
    </script>
    <a href="javascript: playAudio()" id="clickme">hit me</a>
     

Share This Page

Search tags for this page

autoplay audio ipad

,

autoplay audio on a ipad

,
how to enable no sound on safari ipad
,

ipad safari no sound

,
no sound ipad safari
,
no sound on ipad safari
,

no sound on safari ipad

,
no sound on safari on ipad
,
safari autoplay
,

safari no sound ipad