Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/rn-dynacast-encodings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'livekit-client': patch
---

Fix dynacast never pausing video layers on React Native: save sender encodings before skipping the stats monitor
8 changes: 5 additions & 3 deletions src/room/track/LocalVideoTrack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,18 @@ export default class LocalVideoTrack extends LocalTrack<Track.Kind.Video> {
/* @internal */
startMonitor(signalClient: SignalClient) {
this.signalClient = signalClient;
if (!isWeb()) {
return;
}

// save original encodings
// TODO : merge simulcast tracks stats
const params = this.sender?.getParameters();
if (params) {
this.encodings = params.encodings;
}

if (!isWeb()) {
return;
}

if (this.monitorInterval) {
return;
}
Expand Down
Loading