Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto reconnect after network problem solved. #77

Open
ghost opened this issue Mar 5, 2020 · 1 comment
Open

Auto reconnect after network problem solved. #77

ghost opened this issue Mar 5, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 5, 2020

When player stops playing, due to any network error.

How can we start playing again automatically..?

@marekside
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant