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

How to handle live stream failure? #240

Closed
hussainkadori opened this issue Jan 13, 2023 · 4 comments
Closed

How to handle live stream failure? #240

hussainkadori opened this issue Jan 13, 2023 · 4 comments

Comments

@hussainkadori
Copy link

Hi,
How can I handle RTSP live stream failure ? is there any event I can use?

@SuRGeoNix
Copy link
Owner

Can you describe the failure in more details? What do you see in the logs when it happens (try to even enable trace)?
In the meantime, I'm looking to provide you all possible events that you could check.

@hussainkadori
Copy link
Author

When camera connection is lost , I need an event to show a reconnect button on the screen

@SuRGeoNix
Copy link
Owner

  • Player.BufferingCompleted Event (if (!e.Success) handle error)
  • Player.PlaybackStopped Event (same as above)
  • Player.VideoDemuxer.TimedOut Event (However this can be normal to get timeout sometimes, check also the configuration for timeouts, you might want to check if you have more than X timeouts in Y period of time then you handle this)

@hussainkadori
Copy link
Author

Thanks, I used TimedOut event

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

2 participants