Skip to main content
January 2, 2013
Question

Emptying the buffer of a receiver of a live stream

  • January 2, 2013
  • 1 reply
  • 974 views

Hi,

In my application, a publisher starts a live video and a receiver could recieve it through FMS rtmp. The problem:

1) Once the receiver faces latency, due to slow connection, the latency keeps on increasing from 1 second to 10s, 20s and above. What i feel here is that the reciever's buffer starts accumulating video data and keeps on accumulating it and never flushes it.I am unable to find a property in netStream and Application.xml to empty the buffer of a poor connection reciever.

How can i fix this issue, so that a slow connection receiver's latency remains constant around 2 - 3 seconds. Please help.

Regards,

Sahil.

    This topic has been closed for replies.

    1 reply

    January 3, 2013

    Am I asking a wrong/invalid question OR is it not the right discussion group where i should post this question. Anybody please reply.

    Adobe Employee
    January 4, 2013

    1. What version of FMS are you on?

    2. You need to set the MaxAudioLatency correctly in application.xml. It will drop the audio messages..

    January 7, 2013

    Hi Nitin,

    1) Fms version is 3.5.7.

    2) I dont have issues with Audio, Its video that raises latency on slow connections of video receivers. To solve this issue i set the publisher's video quality according to receiver's bandwidth. This helps BUT does not solve the problem.

    Example:

    Publisher is broadcasting video at 800 kbps. The reciver of this stream has a lower bandwidth of 512 kbps, this difference (800 - 512 = 288 kbps) at receiver produces latency. The extra bit of data ie the 288 kbps is somewhere buffered by the recieiver in its stream and this keeps on accumulating on and on. Thus latency never drops or reduces.

    This is why i wish to clear/empty/drop the extra receiver stream data.

    Thanks,

    Sahil.