HTML embedding: rtsp-caching

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Gaspa
New Cone
New Cone
Posts: 4
Joined: 02 Sep 2008 17:51

HTML embedding: rtsp-caching

Postby Gaspa » 02 Sep 2008 18:15

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!

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: HTML embedding: rtsp-caching

Postby dionoea » 02 Sep 2008 18:43

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)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

Gaspa
New Cone
New Cone
Posts: 4
Joined: 02 Sep 2008 17:51

Re: HTML embedding: rtsp-caching

Postby Gaspa » 03 Sep 2008 09:27

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.

Gaspa
New Cone
New Cone
Posts: 4
Joined: 02 Sep 2008 17:51

Re: HTML embedding: rtsp-caching

Postby Gaspa » 03 Sep 2008 09:31

ah! or perhaps via the javascript function: vlc.playlist.add() ? (btw, i'm gonna try)

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: HTML embedding: rtsp-caching

Postby thannoy » 03 Sep 2008 11:41

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


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 47 guests