Skip to main content
September 25, 2012
Question

Flash Media Server 4.5 Re-Stream Not Failing Gracefully

  • September 25, 2012
  • 1 reply
  • 573 views

Hi there.

We have FMS 4.5 running as a re-streamer using another RTMP source feed.  Sometimes the source feed is offline and we have no control over that camera.  But when our clients connect to our FMS server they sit indefinitely waiting, as the FMS server tries to stream the content to them.  The connection never times out and the user is never prompted that the stream is not running.

Is there any application configuration we can set up that will make the connection "timeout" if nothing is getting streamed?

Using rtmpdump for testing we are seeing this <_onbwcheck> over and over again:

DEBUG: HandleCtrl, Stream BufferEmpty 1

DEBUG: RTMP_ClientPacket, received: invoke 32803 bytes

DEBUG: (object begin)

DEBUG: Property: NULL

DEBUG: (object end)

DEBUG: HandleInvoke, server invoking <_onbwcheck>

DEBUG: Invoking _result

DEBUG: RTMP_ClientPacket, received: invoke 49187 bytes

DEBUG: (object begin)

DEBUG: Property: NULL

DEBUG: (object end)

DEBUG: HandleInvoke, server invoking <_onbwcheck>

DEBUG: Invoking _result

Thanks for any help.

This topic has been closed for replies.

1 reply

Adobe Employee
September 28, 2012

You can inject a datakeyframe in the stream from server side application. Data keyframe are stored inside the stream and pushed to all subscribing client.

On client side, you may discontinue connection if datakeyframe doesn't arrive for some specified time.

Read more about data key frame here;

http://livedocs.adobe.com/flashmediaserver/3.0/hpdocs/help.html?content=00000397.html