HTML5 Video Stop onClose

后端 未结 9 883
暗喜
暗喜 2020-12-10 11:23

I\'m using jQuery tools for an overlay. Inside the overlay I have an HTML5 video. However, when I close the overlay, the video keeps playing. Any idea how I might get the vi

9条回答
  •  醉话见心
    2020-12-10 12:15

    If you want to stop every movie tag in your page from playing, this little snippet of jQuery will help you:

    $("video").each(function () { this.pause() });
    

提交回复
热议问题