How do I make the SMF player automatically recover from an error?

Mar 20, 2014 at 11:52 AM
Hello,

I am getting an error when playing a live smooth streaming video i.e. "reach the end of known chunk with 2 consecutive chunks errors", in case of streaming disconnected from encoders.

As it occurred the player goes into closed state and we have to restart player to get resume the video from next reconnecting point (From where encoder reconnect and send video).

So is there any automatic way to recover this problem.

Thanks in advance
Mar 20, 2014 at 12:07 PM
Hello,

In SMF Player there are 2 properties RetryInterval and RetryTimeout set as Timespan value which used to trying reconnect by SMF player if any error occurred.

By Default SMF PlayerMediaFailed event call in case of any error, if you have set these properties so you can check this error in this event. As an error occurred smf player will start retrying to recover the next reconnected point according the retry properties.