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

Impossible to re-connect after connection is closed #34

Open
raoneel opened this issue Sep 25, 2018 · 1 comment
Open

Impossible to re-connect after connection is closed #34

raoneel opened this issue Sep 25, 2018 · 1 comment

Comments

@raoneel
Copy link

raoneel commented Sep 25, 2018

Steps to re-produce (Android)

  1. Start subscribing to a stream on Android
  2. Turn on Airplane mode to cut all internet connections
  3. Receive event code DISCONNECTED (1)
    (Note, sometimes this status isn't sent! On iOS, no new status codes are sent on disconnect. Also, the CLOSED event is never sent on either platform)

When the stream disconnects, we'd like the client to try to re-connect. We've tried 2 approaches.

Approach 1: Call subscribe() again. This doesn't work.

Approach 2: Unmount and re-mount the component again. We do this by toggling the component in render:

{this.state.renderVideo && <Red5Player ...>}

This sends a few events:
LICENSE_VALID
CONNECTED
START_STREAMING

But the video never actually renders.

Neither of these approaches works to reconnect to the stream. Is there another way to re-connect?

@HoldenMills
Copy link

Hi Neel,

Thanks for the detailed reproduction steps. Please submit your issue to our support team using this link: https://red5pro.zendesk.com/hc/en-us/requests/new. That's the best way for us to keep track of all our support requests and ensure that we stay on top of your concern.

Thanks,
Holden

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