Let videos execute actions upon end or when set frame is reached


(Mikael) #1

A general question:

(1) Is it possible to make hype (or html5) execute a hype-action (ie. timeline or new html-page) when a video – either youtube or “native hype” – reach a certain frame/time or ends?

(2) Or can one apply a js-function in Hype to perform this?

Kind regards,


Yes please see this thread: Run javascript when video has ended

Here’s a way to do certain actions based on how much of the video has played using the timeupdate property: Sync animations to Video & Audio

To do this with a Youtube video you would need to use the Youtube api which is a bit more complex than the standard HTML5 events.

(Mikael) #3

Hello Daniel. Your reply is utterly helpful, thanks alot!
Kind regards,