File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff 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 " )
You can’t perform that action at this time.
0 commit comments