VLC Plugin - how to stop video from playing automatically?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
mlapl1
Blank Cone
Blank Cone
Posts: 19
Joined: 13 Sep 2008 16:50

VLC Plugin - how to stop video from playing automatically?

Postby mlapl1 » 29 Oct 2008 22:56

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

Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 45 guests