📜  Twilio 房间没有断开网络摄像头 LED 保持亮着 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:50.558000             🧑  作者: Mango

代码示例1
room.localParticipant.tracks.forEach(publication => {
    publication.track.stop();
    const attachedElements = publication.track.detach();
    console.log("unsubscribed from: " + publication.track)
    attachedElements.forEach(element => element.remove());
});