WebRTC-Experiment icon indicating copy to clipboard operation
WebRTC-Experiment copied to clipboard

Reconnect after the initiator has left

Open iwuvjhdva opened this issue 9 years ago • 21 comments

Hi,

I work with RTCMultiConnection.

Is there any standard way to reconnect to the initiator after he has left?

There are two pages in our project, initiator.html and participant.html. After establishing the connection if the initiator's page is reloaded the participant connection's onleave() event is raised.

I have tried to set a timer interval and call connection.refresh() and connection.close() + connection.connect() in the callback without success.

The only solution that worked was closing the connection, deleting the object and creating RTCMultiConnection class instance again with doing all the same initialization that has been done on page load.

Is this a proper method or are there any alternatives to that?

Thank you!

iwuvjhdva avatar Jul 10 '14 14:07 iwuvjhdva