From a30c27253ffec5033ece2d2cde200c9d29886e70 Mon Sep 17 00:00:00 2001 From: CloudWebRTC Date: Thu, 12 Oct 2023 23:02:35 -0500 Subject: [PATCH] fix: VP9 svc screenshare. (#386) --- lib/src/participant/local.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/src/participant/local.dart b/lib/src/participant/local.dart index d39e0108..23a37989 100644 --- a/lib/src/participant/local.dart +++ b/lib/src/participant/local.dart @@ -153,6 +153,14 @@ class LocalParticipant extends Participant { 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