Skip to content

Commit

Permalink
fix video attach to incorrect element when transceiver reuse (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
cnderrauber authored Sep 8, 2022
1 parent 3cbc74c commit c477b77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thirty-eagles-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'livekit-client': patch
---

fix video attach to incorrect element when tranceiver reuse
2 changes: 1 addition & 1 deletion src/room/track/RemoteTrackPublication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ export default class RemoteTrackPublication extends TrackPublication {
}

protected handleEnded = (track: RemoteTrack) => {
this.emit(TrackEvent.Ended, track);
this.setTrack(undefined);
this.emit(TrackEvent.Ended, track);
};

protected get isAdaptiveStream(): boolean {
Expand Down

0 comments on commit c477b77

Please sign in to comment.