Skip to content

Commit be2e609

Browse files
authored
Override options (#828)
1 parent bc3de03 commit be2e609

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/lovely-snails-crash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"client-sdk-android": patch
3+
---
4+
5+
Fixed screen sharing with VP9/AV1 codecs

livekit-android-sdk/src/main/java/io/livekit/android/room/participant/LocalParticipant.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,10 @@ internal constructor(
540540
if (options.scalabilityMode == null) {
541541
options = options.copy(scalabilityMode = "L3T3_KEY")
542542
}
543+
// VP9/AV1 with screen sharing requires single spatial layer, always override
544+
if (track.options.isScreencast) {
545+
options = options.copy(scalabilityMode = "L1T3")
546+
}
543547
}
544548
val encodings = computeVideoEncodings(track.options.isScreencast, track.dimensions, options)
545549
val videoLayers =

0 commit comments

Comments
 (0)