Binding value to video currentTime
and slider causes playback issues
#166
-
Describe the bugWhen binding a value to both the slider's value as well as a video tag's Link To ReproduceReproduction: Steps to reproduce the behavior:
Expected behaviorThe video should play smoothly, and the slider should also update smoothly. Device/EnvirontmentChrome |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @bennymi firstly, I'm not convinced this is the correct tool for the job! haha. but still u can always cut a toothpick with an axe ;) The first thing I did was unbind the slider, and check your video's So this made me look at your slider, which is using the default setup. the default setup is a slider going from 0-100, with a step of 1. If the video is setting the value to 0.16667 for example (~1 frame) .. so the solution is;
And you can see that working here. I have played a bit more, and you can probably get away with the step being Hope you found this helpful! |
Beta Was this translation helpful? Give feedback.
Hi @bennymi
thanks for using the Range Slider!
So a couple of a things..
firstly, I'm not convinced this is the correct tool for the job! haha. but still u can always cut a toothpick with an axe ;)
secondly, this is not a bug, but I appreciate it's bugging you :D
The first thing I did was unbind the slider, and check your video's
value
; and you can clearly see the video is using 7 significant digits!So this made me look at your slider, which is using the default setup. the default setup is a slider going from 0-100, with a step of 1.
If the video is setting the value to 0.16667 for example (~1 frame) ..
then the slider will attempt to update ..
but the slider's closest value would be 0 ..
…