I'm using "CS_WebRTC_Client_SDK_iOS.v4.1", in that how can I reconnect and publish stream the stream, when I have network reconnection, or when I switch networks? (in MCU)
1. When I'm in conference call, if I switch Off Wifi, after some seconds( may be after 10 - 20 seconds) the stream get ended, Before that 10-20 seconds if I switch ON my WiFi back the conference is continuing. Now, how to implement manual reconnection when the stream gets ended?
Note: There is no Mobile data.
2. Secondly, how can I know that my stream got ended because of network? Is there a delegate/ call backs?
1. Reconnection is automatically performed by SDK. If you want to manually reconnect to a conference, you'll need to stop existing publications and subscriptions, then re-publish and re-subscribe the streams you need.
2. ICSConferencePublicationDelegate and ICSConferenceSubscriptionDelegate may be the delegates you're looking for.
Once your streaming got ended you will receive an iceconnection state closed or disconnect the state. On which you have to do the further operation.
In my case reconnection established automatically.