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

fix: add callback for connecterror #63

Merged
merged 1 commit into from
Nov 17, 2023
Merged

Conversation

dnimon
Copy link
Contributor

@dnimon dnimon commented Nov 15, 2023

I 'm using this library with cloudflare stream webrtc. I noticed an issue where if I attempt to play the whep url before the whip side has started, then the player will get an exception inside the whep adapter connect and stop. The sequence in this case was getting a retry, it trying to do the connect again, and then the error occurred.

This change adds a new message that can be received as an event, in my case I'm using it to retry the connection after 5 seconds.

Copy link
Contributor

@birme birme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you for the contribution

@birme birme merged commit 9324246 into Eyevinn:main Nov 17, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants