Page 1 of 1

HTML embedding: rtsp-caching

Posted: 02 Sep 2008 18:15
by Gaspa
Hi, that's my first post, so please be kind ;)

I'm using VLC plugin for mozilla in order to have an rtsp flow visualized on a html page.
It works fine, but i need to set to zero the rtsp-caching parameter, given that I work on a LAN and I don't have bandwidth problem at all.

So, i saw no suitable attributes for <embed> tag in mozilla/vlcplugin.cpp, nor a suitable function on javascript interface.
( note that a --rtsp-caching works fine, and setting it from the preferences menu as well )

Am I still missing something? Or it's simple impossible handle rtsp cache from html pages?
Thanks. bye!

Re: HTML embedding: rtsp-caching

Posted: 02 Sep 2008 18:43
by dionoea
You can add ':rtsp-caching=<some value>' in your options list when you add the item to your VLC player instance (don't ask me how that works ... I don't have a clue. I just know that it's possible. Check the web & scripting forum for help about VLC plugins)

Re: HTML embedding: rtsp-caching

Posted: 03 Sep 2008 09:27
by Gaspa
You can add ':rtsp-caching=<some value>' in your options list when you add the item to your VLC player instance
uhm... the colon at begin of 'rtsp-caching' makes me think that you mean the preferences in VLC player, that I cannot access from the web plugin.

I mean, I'd like to use something like:

Code: Select all

<embed type="application/x-vlc-plugin" name="video2" height="480" width="640" autoplay="yes" loop="no" hidden="no" rtsp-caching="0" target="rtsp://192.168.1.58/mpeg4" />
or some javascript magic as well.

Re: HTML embedding: rtsp-caching

Posted: 03 Sep 2008 09:31
by Gaspa
ah! or perhaps via the javascript function: vlc.playlist.add() ? (btw, i'm gonna try)

Re: HTML embedding: rtsp-caching

Posted: 03 Sep 2008 11:41
by thannoy
Yes, you should try something like

Code: Select all

vlc.playlist.add(media_mrl, fooname, ":rtsp-caching=value :otherparams=values.." );
or this second one which should work as well

Code: Select all

vlc.playlist.add(media_mrl, fooname, "--rtsp-caching=value --otherparams=values.." );
In fact, many of command-line arguments are allowed in this third parameter.

_anthony