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

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,
Raaskot

Yes please see this thread: Run JavaScript when a video has ended using addEventListener('ended')

Here's a way to do certain actions based on how much of the video has played using the timeupdate property: Sync Timelines to Video & Audio in Tumult Hype

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.

1 Like

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

1 Like