End video phone video autoplay method

// create a video tag 
    var __video = $ ( "# video") the appendTo ( 'ii-video.'. );
     // set the video file address 
    __video.attr ( 'src', "http : //vd3.bdstatic. COM / MDA-jjuinqnj6b758kdq / SC / MDA-jjuinqnj6b758kdq.mp4 " );
     // Create a temporary label used 
    var __tmpA __tmpA || = $ (" # goDetail ") the appendTo ( 'II-Video.'. );
     // to label binding event, play the video in the label 
    __tmpA.unbind ( 'the bind') the bind ( 'the Click',. function (E) { 
        e.preventDefault (); 
// by first pause, play in the manner ios AutoPlay effect 
        __video [0 ] .play (); 
        __video [ 0 ] .pause ();
        __video[0].play();
    }).click();
    });

 

Guess you like

Origin www.cnblogs.com/shark1100913/p/11830814.html