diff --git a/.changeset/giant-hairs-happen.md b/.changeset/giant-hairs-happen.md new file mode 100644 index 0000000000..0dfc0a494c --- /dev/null +++ b/.changeset/giant-hairs-happen.md @@ -0,0 +1,5 @@ +--- +"livekit-client": patch +--- + +Override sender getter on LocalVideoTrack diff --git a/src/room/track/LocalVideoTrack.ts b/src/room/track/LocalVideoTrack.ts index 9108304f7c..f10ca11af3 100644 --- a/src/room/track/LocalVideoTrack.ts +++ b/src/room/track/LocalVideoTrack.ts @@ -55,7 +55,11 @@ export default class LocalVideoTrack extends LocalTrack { private degradationPreference: RTCDegradationPreference = 'balanced'; - override set sender(sender: RTCRtpSender | undefined) { + get sender(): RTCRtpSender | undefined { + return this._sender; + } + + set sender(sender: RTCRtpSender | undefined) { this._sender = sender; if (this.degradationPreference) { this.setDegradationPreference(this.degradationPreference);