End mobile phone part of the phone can not play audio processing automatically

<sectionTop class = " Music Rotate " > 
    <Audio Loop the src = " /static/wishChina/music1.mp3 " ID = " audio_play " AutoPlay PRELOAD> </ Audio> 
</ sectionTop> // The following are jquery processing, loaded, this method is called, music playing function audioAutoPlay (ID) {
         var Audio = document.getElementById (ID); 
        audio.play (); 
        document.addEventListener ( " WeixinJSBridgeReady " , function () { 
            audio.play (); 
        }, to false ); 
        the Document.addEventListener(


'YixinJSBridgeReady', function () {
            audio.play();
        }, false);
    }

 

Guess you like

Origin www.cnblogs.com/-lin/p/11610900.html