Video wont play after first time playing

前端 未结 1 687
粉色の甜心
粉色の甜心 2020-12-21 21:35

I have been trying to connect the dots for days but due to lack of my knowledge in positioning and jQuery . I am making code a mess. I am trying to play video on click on th

相关标签:
1条回答
  • 2020-12-21 22:28

    If you're using jQuery on other pages, I presume you are also using HTML. I believe I've done a similar thing with HTML with the .click method and also "controls loop" with...

    <video width="320" height="240" controls loop>
        <source src="movie.mp4" type="video/mp4">
        <source src="movie.ogg" type="video/ogg">
    </video>
    

    This would continually loop after the button is clicked, and should disappear.

    0 讨论(0)
提交回复
热议问题