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 (http://share.framerjs.com/ls45f54htojk/) 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 ?

2 Comments

Stan Dézaid

Ccing Benjamin Den Boer on this one !

Stan Dézaid

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

Read the entire post on Facebook