HTML VLC plugin and rtsp-caching

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
GunnarK
Blank Cone
Blank Cone
Posts: 18
Joined: 16 Oct 2008 12:27

HTML VLC plugin and rtsp-caching

Postby GunnarK » 13 Jan 2009 10:58

I have got the following HTML code including VLC plugin, which i want to stream a network camera:

Code: Select all

<html> <title>VLC plugin</title> <script language="javascript"> function play(obj, uri) { var obj = document.getElementById(obj); obj.playlist.add(uri,uri, ""); obj.playlist.play(); } function stop(obj) { var obj = document.getElementById(obj); obj.playlist.stop(); } function init() { play('vlc1', 'rtsp://192.168.0.101:7070'); } </script> <body> <OBJECT> <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2" width="720" height="576" rtsp-caching="80" id="vlc1"> </embed> </OBJECT> <button onclick="play('vlc1', 'rtsp://192.168.0.101:7070');">start</button> <button onclick="stop('vlc1');">stop</button> </body> </html>
My problem is that I have got 1.5 sec delay of the picture. In the VLC player I can lower the rtsp-caching to 80ms.
Is this possible to do for the VLC plugin?

rtsp-caching="80" does not work.

Rémi Denis-Courmont
Developer
Developer
Posts: 15279
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: HTML VLC plugin and rtsp-caching

Postby Rémi Denis-Courmont » 13 Jan 2009 22:18

Tweaking this setting from HTML is not allowed for security reasons.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

GunnarK
Blank Cone
Blank Cone
Posts: 18
Joined: 16 Oct 2008 12:27

Re: HTML VLC plugin and rtsp-caching

Postby GunnarK » 15 Jan 2009 12:30

I mannaged to set the rtsp-caching to 80 ms by the following:

obj.playlist.add(uri,uri, " :rtsp-caching=80");


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 40 guests