red5pro / react-native-red5pro

React Native Red5 Pro Publisher/Subscriber
https://www.red5pro.com/
Other
34 stars 20 forks source link

Impossible to re-connect after connection is closed #34

Open raoneel opened 5 years ago

raoneel commented 5 years ago

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 commented 5 years ago

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