Page 1 of 1

how to buffer a stream using the plugin api?

Posted: 27 Feb 2008 22:37
by rbarrero
I've read the plugin api documentation from Quovodis regarding the VLC plugin objects that can be accessed for setting and getting information, however, I don't see any functions on buffering. There is a state to determine if VLC is buffering, but I'm looking for the functions or options that will force this to happen on a particular item in a playlist.

I've been told it's possible, the question is how to implement it.

Thanks,

Rafael

Re: how to buffer a stream using the plugin api?

Posted: 03 Mar 2008 17:52
by plexium_nerd
I had this same question. After a little research I found that vlc command-line options can be passed into the plugin via the playlist's add() method as the 3rd parameter. It can be either in string (space-delimited) form or array and must be in MRL form (ie :option=value ). Kinda neat because you can specify different options on a playlist item basis.

This worked for me...

Code: Select all

vlcviewer = document.getElementById("vlcviewer"); vlcviewer.playlist.add('http://myvideo.mpg', null, ':http-caching=10000' );
Hope that helps!

http://wiki.videolan.org/VLC_command-line_help