opentok / opentok-ios-sdk-samples

Example applications that use the OpenTok iOS SDK
https://tokbox.com/developer/sdks/ios
MIT License
200 stars 117 forks source link

Session stream destroyed when reconnecting after no network #268

Open badarovska opened 2 years ago

badarovska commented 2 years ago

Version: Opentok iOS verison 2.23.1

Steps to reproduce

  1. Connect to session and start publishing
  2. Turn of the internet connection
  3. Wait for the session to disconnect
  4. Turn on the internet connection
  5. Connect to session again as soon as you turn on the internet
  6. The app successfully connects to session and starts publishing
  7. After a few seconds a stream destroyed event is received for the publisher stream without any error or action by the user

What is the current bug behaviour? Even though the session is connected successfully and the publisher stream is created and publishing, a stream destroyed event is received and it terminates the video call.

The bug was recreated on the Bacic-Video-Chat sample.

What is the expected correct behaviour? If the session is connected and already publishing, a stream destroyed event should not be received for no reason.

Possible related issue: https://github.com/opentok/opentok-react-native/issues/201

v-kpheng commented 2 years ago

Thanks, @badarovska, for letting us know about this. We'll investigate this: https://jira.vonage.com/browse/OPENTOK-49081.

Will keep you posted.