Changing a videos current frame by using a scrubber

Updated on April 11, 2018 in [A] GUI
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on April 11, 2018

Hi guys,

I have created a simple scrubber (progress) bar that moves the scrubber position from point A to point B using a Vector3.Lerp relative to the videos current frame. (think youtube video bar).

As it currently stands now it shows the video progress but what I’d like it to do is be able to drag the scrubber along the x-axis (between point a & b) to change the videos current frame (again, think youtube).

 

I hope I’ve explained myself sufficient and if anyone can point me in the right direction It would be greatly appreciated.

  • Liked by
Reply
0 on April 11, 2018

You can make a handler that when the slider has been dragged to a new position you catch the event and set the current frame instead of getting the current frame like you do now?

  • Liked by
Reply
Cancel