How to disable DVR/Buffering in VLC's ActiveX object (timeshifting)

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
martinarcher
New Cone
New Cone
Posts: 4
Joined: 30 Sep 2016 14:57

How to disable DVR/Buffering in VLC's ActiveX object (timeshifting)

Postby martinarcher » 30 Sep 2016 15:06

I'm using the VLC ActiveX object to display a RTSP stream from a IP camera to a webpage. It is important the stream stay's live and does not show "past data". The player has a pause button and some other controls shown on the bottom of the player. If you press pause, the video stream pauses and the streaming video is buffer similar to the function of a DVR. When you hit play again, it starts playing the video back from the time you pressed pause and is now showing the stream but displaying data that is old. I would like it to always stay live. I have set the "controls" parameter to false....

Code: Select all

<param name="controls" value="False" />
This has removed the pause button and controls from the native ActiveX object size which is great but if you double click on the object to make the video full screen (which I need in this application), the controls come back. In the player itself (exe) I have unchecked the Tools->Preferences->Interface->Show controls in full screen mode. This disables the control bar when using the exe but does not seem to apply to the ActiveX object.

I am using IE wrapped in a C++ VCL application. Any other way to display RTSP streams in a VCL application would be a good workaround as well.

Any ideas how to hide the controls on the ActiveX object in full screen mode and/or disable the buffering when paused?

Here is how I'm embedded the object into my browser...

Code: Select all

<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab" width="1024" height="768" id="vlcPlayer1" name="vlcPlayer1" class="vlcPlayer" events="True"> <param name="Src" value="rtsp://192.168.0.24"/> <param name="AutoLoop" value="False" /> <param name="AutoPlay" value="True" /> <param name="branding" value="False" /> <param name="control" value="False" /> </object>
Installed VLC version is 2.2.4.

After some investigation I found that in my C:\Users\Administrator\App Data\Local\Temp directory that VLC is creating files and buffering the data to them. They are are labeled vlc-timeshift.XXXXXX. I can't seem to find a way to disable timeshifting in the preferences. In Input Codecs I can change the file granularity or the path (the path change doesn't seem to change the location of the timeshift files when using the ActiveX object). Any ideas how to disable this? This application is viewing a live webcam and the stream staying live is paramount.

Thanks!

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

Re: How to disable DVR/Buffering in VLC's ActiveX object (timeshifting)

Postby da2424 » 07 Oct 2016 18:36

Any ideas how to hide the controls on the ActiveX object in full screen mode and/or disable the buffering when paused?
Currently, it's not possible to hide the controls in fullscreen mode.
No idea how to disable timeshift. I have tried with :input-timeshift-granularity=0, but it doesn't work.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 18 guests