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

What is Framer? Join the Community
Return to index
Stan Dézaid
Posted Jan 25 - Read on Facebook

Is there an issue with the “timeupdate” video method ?

This might have been answered already, but I played around with Benjamin's video example from June ( where he uses this bit of code :

vid.player.on "timeupdate", ->

However when I hit “File” and “Update Framer” -- or when I use the same code in a new framer -- I get an error saying :
“ undefined is not an object (evaluating ‘this.element.addEventListener’) "

Any idea on that ?


Stan Dézaid

Ccing Benjamin Den Boer on this one !

Stan Dézaid

Ok, seems you just need to change :
" vid.player.on "timeupdate", -> "
“ vid.player.addEventListener "timeupdate", -> "

Read the entire post on Facebook