How to set a video start at a certain moment?

video

(Gabriele Costamagna) #1

Hello everyone,
I’m a new user and I would like to say that Hype is an amazing tool.

Is it possible to add a video and setting the autoplay at a certain action of the user? At the moment I’ve put the “video track” after 23 sec and I would like to play the video when a user click on a button or scroll with the mouse.

Thank you in advance for the help.


(Hans-Gerd Claßen) #2

uncheck autoplay for your video. give an id of ‘video’ to your video.
run

hypeDocument.getElementById('video').play()

when the button is clicked