How to change video position?

nicholas99

Member
Licensed User
Longtime User
I would like to be able to control the speed of a video clip and also step through it frame by frame. When I try to use vv.position=vv.position + 100 for example, to step 100 msec forward, the video position always returns to the beginning.
Does anyone know an easy to alter the playback speed of a video? My videos clips are not streamed - they are built into the application. At the moment I am using a timed delay to pause and restart the video to control its speed but I'm sure there must be an easier way.
 

nicholas99

Member
Licensed User
Longtime User
Paused before position change

Thanks for the reply. Yes, I did this:
vv.pause
vv.Position=vv.Position+100
vv.play

Video position resets to the beginning of the clip.
I think it could be a timing problem. I want to show the new position as a still frame so I do this:

vv.pause
vv.position=vv.position+100
vv.play
vv.pause

Maybe I need to allow more time for the new position to be rendered?
 
Last edited:
Upvote 0

nicholas99

Member
Licensed User
Longtime User
Thanks very much Erel, that really helped.
This works pretty well for incrementing clip position:

vv.pause
vpos=vv.Position+1
vv.play
Do While vv.position <= vpos
'wait
Loop
vv.pause

Decrementing is another problem...
 
Upvote 0
Top