Home > front end >  Apple's safari cannot play video video
Apple's safari cannot play video video

Time:11-30

<script>
$(' videolist ".) each (function () {//traverse video list
$(this). Hover (function () {//after the mouse up shows play button
$(this). The find (' videoed '), show ();
}, function () {
$(this). The find (' videoed '). Hide ();
});
$(this). Click (function () {//after the video was click execute
Var img=$(this). Attr (' vpath ');//get video preview
Var video=$(this). Attr (' ipath ');//the video path
$(' videos'). The HTML (" & lt; Video video id=\ '\ "poster='" + + "img" style="width: 1180 px; Z - index: 100; 'SRC=' "+ video +" 'preload=\ "auto " controls=\ "controls, " the autoplay=\ "the autoplay " & gt; Your browser does not support the video format & lt;/video> " );
$(' videos'). The show ();
});
});

The function close1 () {
Var v=document. GetElementById (' video ');//get video node
$(' videos'). Hide ();//click close button to close to suspend video
Valerie plame ause ();
$(' videos'). The HTML ();
}
</script>

Apple safari cannot play video video, which under the great god destroy

CodePudding user response:

Apple can't play video for several reasons, first of all, it doesn't automatically play, js's play () method will not take effect, can try to play (), pause (), play (), if not see your video format is correct

CodePudding user response:

Video format should be no problem, do the preferences, video can be played under the safari picture in picture function; Don't set will show a blank: as shown in figure
  • Related