Page 1 of 1

VLC Plugin - how to stop video from playing automatically?

Posted: 29 Oct 2008 22:56
by mlapl1
Hello

I would like to be able to load a file and have it ready to play using the VLC plugin. However, i cannot find a way of loading the file other than to use the play command (as follows):
vlc_controls.play("c:/XYZ.mpg");

What this does is to load the file and start playing it as soon as the page is displayed. I do not want playback to start automatically. It all works perfectly once the automatic playback has been stopped manually. I must be missing something really simple :(

My full javascript code, as inspired by the example files which come with the plugin is :

vlc_controls.onready = function () {
vlc_controls.options.set("start-time", start_code); // set START time
vlc_controls.options.set("stop-time", stop_code); // set STOP time

vlc_controls.play("c:/XYZ.mpg"); // PLAY starts automatically from the BEGINNING of the clip - it only reads start-time and stop-time after it has been stopped manually
}


I cannot seem to find an answer in the docs.

Any help would be appreciated.

Thank you
Andrew