diff --git a/src/plugin.js b/src/plugin.js index dc597fb..79758a1 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -83,6 +83,14 @@ class WebRTCHandler { } break; } + case ANT_CALLBACKS.CLOSED: { + if (iceConnected) { + this.webRTCAdaptor.getStreamInfo(this.source.streamName); + } else { + this.initiateWebRTCAdaptor(this.source, this.options); + } + break; + } case ANT_CALLBACKS.PLAY_STARTED: { this.joinStreamHandler(obj); break;