Page 1 of 1

How to restart a movie which has ended?

Posted: 21 Dec 2011 16:12
by JustinWyllie
Hi

I want to 'rewind' an http:// (ts file) video.

I can set its position e.g. to 0.01 but this doesn't work (pseudo code):

when vlc.input.state = 6
vlc.input.position = 0.01
vlc.playlist.play();

It doesn't play

If it is playing (state 3) when I set the position to 0.01, that works- so the problem seems to be how to 'restart' a movie which has ended?

Thanks

Justin Wyllie

Re: How to restart a movie which has ended?

Posted: 21 Dec 2011 17:01
by JustinWyllie
ok.

when vlc.input.state = 6
vlc.input.position = 0.01
vlc.playlist.stop();
vlc.playlist.play();

works.

However:

when vlc.input.state = 6
vlc.input.position = 0
vlc.playlist.stop();
vlc.playlist.play();

does not. It seems you cannot set input.position to 0?

I've tried:

parseFloat('0');
Number(0);
"0.0"

JustinWyllie