Twilio room does not disconnect / Webcam LED remains on code example
Example: 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());
});