In this post, I use the Node.js script I mentioned in a previous post to stream a screen cast to the following players executing on Windows 7 and Ubuntu 11:
- Chrome 11 video tag
- FireFox 4 video tag
- Opera 11 video tag (only tested on Windows 7)
- VLC media player – standalone and using VLC media player browser plugin for Firefox
To screen cast, the video source in the Node.js script needs to be changed from
ximagesrc. I have also changed the
max-keyframe-distance (=2) and
max-latency (=0) parameters, to get the best liveness possible.
Overall, the audio/video in the browsers lags by about 2-4 seconds on the local host. VLC shows the lowest lag time.
In Opera 11, if you play the same live video in two separate video tags in succession, it seems to play from cache in the second tag, from the point the video began playing in the first tag.
All browsers cache video, so if you pause and resume, the video plays from the point it was paused. If you wan’t to implement a live TV broadcast experience, you will be better off implementing custom controls, where pause effectively stops the video, and resume starts the video stream all over again.