Skip to content

Commit 4e2832f

Browse files
Stop MediaStream tracks at the end of the video check (livekit#1552)
1 parent a47143b commit 4e2832f

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.changeset/dull-otters-dress.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'livekit-client': patch
3+
---
4+
5+
Stop MediaStream tracks at the end of the video check

src/connectionHelper/checks/publishVideo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export class PublishVideoCheck extends Checker {
8383
video.play();
8484
});
8585

86+
stream.getTracks().forEach((t) => t.stop());
8687
video.remove();
8788
}
8889
}

0 commit comments

Comments
 (0)