[vlc] How To Change VLC Firefox Plugin Settings?

Amichai Rotman amichai at penguincsc.co.il
Mon Feb 14 11:29:35 CET 2011


Thank you, Jean-Paul,

Is this PHP code?

I am quite a novice - how do I use it?

Thanks!

Amichai

On Mon, Feb 14, 2011 at 10:39, Jean-Paul Saman <jpsaman at gmail.com> wrote:

> On Sun, Feb 13, 2011 at 6:23 PM, Amichai Rotman
> <amichai at penguincsc.co.il> wrote:
> > Hello,
> > I am running VLC 1.1.7 under Ubuntu 10.10 on a NetTop machine based on
> the
> > Atom Z530 and 1Gb RAM.
> > The VLC client plays movies and strams without any problems, but when I
> try
> > to watch a stream inside Firefox, it freezes every few seconds.
> > I had the same problem with the client and after changing some settings
> > (namely - the cache values for File, HTTP,UDP and TCP) it got better.
> > How do i optimize the settings for the plugin? I understand that since
> > version 0.90, the plugin doesn't read the settings from the VLC rc
> file...
>
> You can still use the MRL way of providing options on your playlist
> items. Here is a snippit code:
>
> function doGo(targetURL)
> {
>    var vlc = getVLC("vlc");
>
>    if( vlc )
>    {
>        vlc.playlist.items.clear();
>        while( vlc.playlist.items.count > 1 )
>        {
>            // clear() may return before the playlist has actually been
> cleared
>            // just wait for it to finish its job
>        }
>        var options = [":rtsp-tcp"];
>        var itemId = vlc.playlist.add(targetURL,"",options);
>        options = [];
>        if( itemId != -1 )
>        {
>            // play MRL
>            vlc.playlist.playItem(itemId);
>        }
>        else
>        {
>            alert("cannot play at the moment !");
>        }
>        doItemCount();
>    }
> }
>
> The "var options = [":rtsp-tcp"]; " can  hold an array of options. In
> your case you can add http-caching=<ms>, for instance like this:
> var options = [":rtsp-tcp",":http-caching=1200","udp-caching=1200"];
>
>
> Kind regards,
> Jean-Paul Saman
> ______________________________________________________
> vlc mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20110214/b4ac66cc/attachment.html>


More information about the vlc mailing list