mirror of
https://github.com/livekit/livekit.git
synced 2026-08-29 07:39:09 +00:00
fallback to vp8 if no viable codec (#2211)
This commit is contained in:
@@ -151,6 +151,6 @@ func selectAlternativeVideoCodec(enabledCodecs []*livekit.Codec) string {
|
||||
return c.Mime
|
||||
}
|
||||
}
|
||||
// uh oh. this should not happen
|
||||
return ""
|
||||
// no viable codec in the list of enabled codecs, fall back to the most widely supported codec
|
||||
return webrtc.MimeTypeVP8
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user