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

What is Framer? Join the Community
Return to index
Matias Seijas
Posted Apr 30 - Read on Facebook

Hey everyone! I'm trying to build a prototype that uses video with framer and I'm having some trouble. The documentation is not very extensive, but I learned that the VideoLayer is the same as HTMLMediaElement so that helped. The problem that I'm having is that the fastSeek function is not working, and when I look at the readyState var it returns HAVE_NOTHING. Any idea what might be causing this? Thanks :)

3 Comments

Kasper Germann Kramme

did you make it work?

Matias Seijas

Thanks for that link Koen! Actually, I was able to make it work by adding an event listener for "canplay". Once that is triggered, I am able to use the videolayer.player.currentTime property to seek through the video. By the way, I'm pretty new with Framer and coffeescript, and found that the syntax on the documentation for adding an event listener to the VideoLayer would not work. In case anyone is having similar issues, the syntax that worked for me is: Events.wrap(videoLayer.player).addEventListener "canplay", =>

Read the entire post on Facebook