This commit is contained in:
freddyaboulton
2024-10-23 15:11:39 -07:00
parent ac8d2a8be8
commit 1688502e99
11 changed files with 83 additions and 38 deletions

View File

@@ -134,6 +134,7 @@ export function stop(pc: RTCPeerConnection) {
// close local audio / video
if (pc.getSenders()) {
pc.getSenders().forEach((sender) => {
console.log("sender", sender);
if (sender.track && sender.track.stop) sender.track.stop();
});
}