Detect when an HTML5 video finishes

前端 未结 7 2168
死守一世寂寞
死守一世寂寞 2020-11-22 05:45

How do you detect when a HTML5 element has finished playing?

7条回答
  •  天命终不由人
    2020-11-22 06:20

    You can simply add onended="myFunction()" to your video tag.

    
    
    
    

提交回复
热议问题