Answers for "Twilio room does not disconnect / Webcam LED remains on"

1

Twilio room does not disconnect / Webcam LED remains on

room.localParticipant.tracks.forEach(publication => {
    publication.track.stop();
    const attachedElements = publication.track.detach();
    console.log("unsubscribed from: " + publication.track)
    attachedElements.forEach(element => element.remove());
});
Posted by: Guest on November-05-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language