The right type of random numbers for a media player?

I’m trying to jump to a random position in a video that’s playing through a widget.
I have a video player playing through a video texture thru a material thru a widget. I want to choose a time for it to play from. What kind of numbers must these be and how must I type them in for it to use them?

Hey @dvelez! I’d recommend making a new timespan, take your duration and get total seconds, then pass that to the random int range, then into make timespan. Which is an int so you need to translate from float, and if you want to have specific’s youll need to use milliseconds.

1 Like