html5 - Please explain h5 video event monitoring in detail
PHPz
PHPz 2017-05-24 11:36:26
0
1
1042

As shown below, when the same video is loaded repeatedly, the monitored events will not take effect`
The video is valid when it is loaded for the first time, but because the 1 and 2 videos are the same, the dialog pops up when the video is played the second time. The video will not be reloaded
The listening event canplay is invalid at this time.
In addition, I added the autoplay attribute to the video tag, but the play event was not monitored.
##`

PHPz
PHPz

学习是最好的投资!

reply all(1)
世界只因有你

First of all, make sure it is a native video tag (I didn’t see the code). You can refer to the event here. Secondly, what you wrote is "H5". I don’t know whether you are referring to the H5 page on the mobile side or HTML5. The mobile side does not support it (native). Play automatically.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template