Working with a video layer. I want to detect the end of the video in an Event... to trigger something else... cant find anything on group or in Docs.... thanks
Hey Noam! Looking at the source, it appears you can do it in two different ways. You need to use the HTML event though.
@player.on/off adds an event listener so you can do
videoLayer.player.on "ended", ->
videoLayer.player.addEventListener "ended", ->
In case anyone sees this, 'videoLayer.player.on "ended", ->' doesn't work in the latest version of framer. It gives an error that about an undefined event.
However using 'addEventListener' does work: