Skip to content

Commit c927764

Browse files
chenosaurusCopilot
andauthored
Update cmd/lk/join.go
remove redundant check Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3b40a5d commit c927764

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

cmd/lk/join.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -481,14 +481,6 @@ func handleSimulcastPublish(room *lksdk.Room, urls []string, fps float64, onPubl
481481
return fmt.Errorf("no valid simulcast URLs provided")
482482
}
483483

484-
// Ensure all layers use the same codec
485-
codec := layers[0].parts.codec
486-
for _, l := range layers[1:] {
487-
if l.parts.codec != codec {
488-
return fmt.Errorf("all simulcast layers must use the same codec; expected %s, found %s", codec, l.parts.codec)
489-
}
490-
}
491-
492484
// Sort streams by width to determine quality levels
493485
sort.Slice(layers, func(i, j int) bool {
494486
return layers[i].parts.width < layers[j].parts.width

0 commit comments

Comments
 (0)