Skip to content

Commit 81bfc90

Browse files
committed
Format
1 parent 66f546f commit 81bfc90

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Sources/LiveKit/Support/Utils.swift

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,10 @@ class Utils: Loggable {
223223
let videoCodec = overrideVideoCodec ?? publishOptions.preferredCodec
224224

225225
if let videoCodec, videoCodec.isSVC {
226+
// SVC mode
227+
log("Using SVC mode")
226228
// VP9/AV1 with screen sharing requires single spatial layer
227-
if isScreenShare {
228-
log("Using SVC mode with L1T3 for screen sharing")
229-
return [RTC.createRtpEncodingParameters(encoding: encoding, scalabilityMode: .L1T3)]
230-
} else {
231-
log("Using SVC mode")
232-
return [RTC.createRtpEncodingParameters(encoding: encoding, scalabilityMode: .L3T3_KEY)]
233-
}
229+
return [RTC.createRtpEncodingParameters(encoding: encoding, scalabilityMode: isScreenShare ? .L1T3 : .L3T3_KEY)]
234230
} else if !publishOptions.simulcast {
235231
// Not-simulcast mode
236232
log("Simulcast not enabled")

0 commit comments

Comments
 (0)