Ungraceful disconnect between Client and FMS - How to handle & Why?
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
