jacobbo / WebEye

WebEye is a collection of .NET controls.
190 stars 132 forks source link

Auto reconnect after network problem solved. #77

Open ghost opened 4 years ago

ghost commented 4 years ago

When player stops playing, due to any network error.

How can we start playing again automatically..?

marekside commented 4 years ago

When the stream source loose connection you'll be notified by the event StreamStopped. Then you have to implement a retry mechanism. Please pay attention to one thing. On network connection lost, during the stream playing, you'll receive a StreamStopped notification. In the retry mechanism, when you'll try to reconnect, and the source will be not available you'll receive a StreamFailed. It's up to you what's your retry policy you decide to implement.