make html5 video go to first frame when it ends?

前端 未结 2 1102
轮回少年
轮回少年 2020-12-17 03:31

I have a simple video html5 tag, bound to an \"ended\" event:

$(\'#video\').show().trigger(\"play\").bind(\'ended\', function () { 
//code
}
<
2条回答
  •  北海茫月
    2020-12-17 03:49

    This goes in the head:

    
    

    This goes in the video tag:

提交回复
热议问题