Skip to main content
Inspiring
May 23, 2011
Question

Ungraceful disconnect between Client and FMS - How to handle & Why?

  • May 23, 2011
  • 1 reply
  • 604 views

Hey All,

Working on a large scale streaming video application with Flex 4.1 and FMS 4.0. The videos are 20minutes to an hour in duration and the stream is encrypted. The video is transmitted via RTMPE and falls back to RTMPTE if they are behind a firewall. What we're noticing is when the user pauses the video for a while and then hits play we get several instances of playback failure:

  • Video plays with no audio
  • Audio plays with no video
  • Playback is choppy
  • Video plays for a while and then stops

After reviewing everything I've discovered that all issues are related to the client being disconnected from the server without any notification ('Ungraceful'). The video that continues to play is just streaming from the buffer and when it's complete playback halts.

I have read a few articles from back in '07 '08 where this was occurring but nothing recent. Has anyone recently run into this recently?

The solution I gathered from them was to consistently call a function (isConnected) against the FMS server. If after 5 seconds of no response assume the client has been disconnected and do a reconnect.

I believe I have a solution however I'm currently unable to track down the cause of the issue. It only occurs in the production environment which is located behind massive firewall stucture. ( This is for the movie industry ). Has anyone run into this before with relation to the 'pause' button and what they did to resolve it server side? I'm almost questioning if the network hardware itself is doing the disconnection.

Any and all advice, thoughts and opinions are welcome.

Cheers,

Pete

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    May 24, 2011

    So when you see this pause issue resulting in halting playback - did you check FMS access logs at corresponding time to check if there was any disconnect logged for those clients. Also when such scenario happens does it happen only for RTMPTE connects or it happens even for RTMPE.

    Inspiring
    May 25, 2011

    I wish I had access. This is for the movie industry and even though we built the application we don't have access to the servers it runs off of.

    It ONLY seems to occur on their servers which makes me think it could be something outside of the FMS server like an authentication timeout occurring somewheres.