pausing and playing multiple HTML5 videos using jQuery get(0) indexing?

前端 未结 3 1324
后悔当初
后悔当初 2021-02-11 01:44

I have a page of several videos. One can click a thumbnail to play each video. The problem is for that for greater than 2 videos, the clicking on the 3rd thumbnail doesn\'t paus

3条回答
  •  北荒
    北荒 (楼主)
    2021-02-11 01:55

    thanks P1aincloth3sM4n, i followed what you said about reseting all videos and making a more generalizable solution, for those interested please see the following working jsfiddle: http://jsfiddle.net/trpeters1/EyZdy/52

提交回复
热议问题