Workaround for webbrowsers buffering live webm streams and introducing a delay (how to play live webm stream)

StackOverflow https://stackoverflow.com/questions/15530802

Question

I have webm streams coming from an ffserver (16 streams), managed to get all 16 to load at once within a browser, but whether I am playing just one or 16 there is a delay of 3-5 seconds introduced due to either buffering or the handshake plus some kind of compensation to try and sync the timestamps by the browser itself, which leads to my question:

Is it possible to force a browser playing a webm stream via HTML5's video tag (I only really care about Chrome, but it's happening in Firefox too) to play from the actual most recent frame (clients and servers share a common NTP server over the LAN, so they are guaranteed to be synced, if that is a factor) as opposed to maintaining a buffer of several seconds and playing from the start of that buffer?

Was it helpful?

Solution

Have you tried to change you ffserver config file settings. I also have a series of pipe images and probably add the following parameters to your config file might decrease the delay.

PreRoll 0

StartSendOnKey

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top