Closed vogdb closed 7 years ago
Verified. Media breaks and we need to reconnect to room/mountpoint.
Now I think that we can even ignore those events. If use needs those events, he can do this:
plugin.on('message', function(message){
switch (message['janus']) {
case 'webrtcup':
case 'hangup':
case 'media':
//do whatever you want.
break;
}
})
@zazabe your thoughts?
well, here are the changes. @zazabe please reject/confirm them. I'm still unsure about having them. btw the original janus.js does not have callbacks for those events https://janus.conf.meetecho.com/docs/JS.html
@zazabe wdyt?
I think only hangup
is useful as an event, others could be catch by listening on message
as you said.
@zazabe please review
lgtm!
I've checked. When
hangup
is received janus connection does not break, session does not destroy, plugin does not detach. Seems it is only about having media stream?