Skip to content

Commit

Permalink
fix: VP9 svc screenshare. (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc authored Oct 13, 2023
1 parent 93c1758 commit a30c272
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/src/participant/local.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@ class LocalParticipant extends Participant<LocalTrackPublication> {
scalabilityMode: 'L3T3_KEY',
);
}

// vp9 svc with screenshare has problem to encode, always use L1T3 here
if (track.source == TrackSource.screenShareVideo &&
publishOptions.videoCodec.toLowerCase() == 'vp9') {
publishOptions = publishOptions.copyWith(
scalabilityMode: 'L1T3',
);
}
}

// use constraints passed to getUserMedia by default
Expand Down

0 comments on commit a30c272

Please sign in to comment.