Pause and play background html 5 video when clicked

Hi, i need something similar to this function on this site

I managed to get the pause working but the play doesn’t work.

Can someone please tell me how to make this work.

You want something similar to that…but what is your attempt? We need to see your code to be able to even attempt to help you :wink: .

1 Like

The OP posted a link to the site, then deleted it for some reason.
@wiek could you provide a link to the site and also some code showing us what you have tried already.

1 Like

Thanks for your replies, i managed to get it work using this code

$(‘.video’).click(function(){this.paused?this.play():this.pause();});

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.