mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 21:53:22 +00:00
fallback to vp8 if no viable codec (#2211)
This commit is contained in:
1 parent
9399fb2bfe
commit
f38a5794a0
1 file changed
+2
-2
@@ -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