New example! A simple video player. You can scrub the progress of the video, as well as pause and play it. Learn how to combine Dragging events, the SliderComponent and the “timeupdate” Video method.
Killing it with all of these examples. Thanks so much!
Great work, thanks!
Fantastic, thanks for sharing!
Thanks for this Benjamin! New to Framer and am trying to work this in right now but I'm getting an error and it seems like its coming from this chunk of code: (error goes away when i remove chunk)
vid.player.on "timeupdate", ->
progress.knob.midX = progress.pointForValue(this.currentTime) time.html = "0:0" + Math.round(this.currentTime) if Math.round(this.currentTime) > 9 then time.html = "0:" + Math.round(this.currentTime)
I've tried in my prototype and in a test environment and am getting the same problem?! Some help would be appreciated!! Thanks
Kyle try going to File -> Update Framer and see if that fixes it
Thanks George, but no such luck! Same thing :/
Answer was on another post, changing top line from screenshot above to vid.player.addEventListener "timeupdate", -> fixes the problem!
this fix worked for me too!