HTML5 Video / End of a Video Poster

后端 未结 10 701
感动是毒
感动是毒 2020-11-28 12:09

With the above; within the HTML

10条回答
  •  情歌与酒
    2020-11-28 12:19

    This is what I ended up doing to see a poster after the video finished playing:

    # Show poster at the end of the video
    $('video').on('ended',->
      $('video')[0].autoplay=false
      $('video')[0].load()
    )
    

提交回复
热议问题