How to restart a movie which has ended?

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
JustinWyllie
New Cone
New Cone
Posts: 5
Joined: 19 Dec 2011 15:22

How to restart a movie which has ended?

Postby JustinWyllie » 21 Dec 2011 16:12

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

JustinWyllie
New Cone
New Cone
Posts: 5
Joined: 19 Dec 2011 15:22

Re: How to restart a movie which has ended?

Postby JustinWyllie » 21 Dec 2011 17:01

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


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 11 guests