quickmeet icon indicating copy to clipboard operation
quickmeet copied to clipboard

onremovetrack -> onconnectionstatechange

Open ugnich opened this issue 4 years ago • 0 comments

You need to replace deprecated onremovetrack with onconnectionstatechange:

Example:

connections[sid].onconnectionstatechange = function (event) {
        const connectionStatus = event.currentTarget.connectionState;
        if (["disconnected", "failed", "closed"].includes(connectionStatus)) {
            // user has left the building
        }
    };

ugnich avatar Aug 24 '21 09:08 ugnich