fallback to vp8 if no viable codec (#2211)

This commit is contained in:
Raja Subramanian
2023-11-02 00:03:47 +05:30
committed by GitHub
parent 9399fb2bfe
commit f38a5794a0
+2 -2
View File
@@ -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
}