search

Home  >  Q&A  >  body text

html5 - Please explain h5 video event monitoring in detail

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.
##`

PHPzPHPz2783 days ago1068

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你2017-05-24 11:38:26

    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.

    reply
    0
  • Cancelreply