This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Noam Elbaz
Posted Jul 19 - Read on Facebook

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

3 Comments

Joshua Tucker

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

OR

videoLayer.player.addEventListener "ended", ->

Noam Elbaz

Thanks

Gregory J. Orton

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:

videoLayer.player.addEventListener "ended", ->

Read the entire post on Facebook