Streaming an .mkv file in live (while being written)

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
ilagi
New Cone
New Cone
Posts: 6
Joined: 02 Aug 2014 18:25

Streaming an .mkv file in live (while being written)

Postby ilagi » 02 Aug 2014 18:31

Hi,
I have a system where an .mkv file is being written on the server from a live screen and I would like to use VLC Web Player to live stream it.

Using VLC Web Player I can stream from the file while it is being written, just by using the below code, but it only plays up to the point where the recording was when the playback started, so basically it plays the file as it was at the time when the replay started.

The question is how can I turn this into real streaming from file? I know that locally VLC can play a file while it is being written and it doesn't stop when it gets to the point to which the file was written when the replay started. How can I do the same from a file on a http server? I tried to set the length of the video to 0, but that is a read only parameter, so I cannot change it. Would I need a streaming server?

The code so far is below:

Code: Select all

<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" width="320" height="260" codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab"> <param name="autoPlay" value="true" /> <param name="length" value="0" /> <param name="src" value="http://abc.com/tmp/recording783770929323509400.mkv" /> <embed type="application/x-vlc-plugin" src="http://abc.com/tmp/recording783770929323509400.mkv" width="320" height="260" autoPlay="true" pluginspage="http://www.videolan.org"> </embed> </object> <br />No video? <a href="http://www.videolan.org/vlc/index.html" target="_blank">Download</a> the VLC Video Player.

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 3 guests