Default to VP9 (#168)

This commit is contained in:
David Zhao 2023-12-01 09:35:11 -08:00 committed by GitHub
parent 4e94e42cd1
commit 1d68b92740
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,7 +111,7 @@ const ActiveRoom = ({ roomName, userChoices, onLeave }: ActiveRoomProps) => {
const roomOptions = React.useMemo((): RoomOptions => {
let videoCodec: VideoCodec | undefined = (
Array.isArray(codec) ? codec[0] : codec ?? 'av1'
Array.isArray(codec) ? codec[0] : codec ?? 'vp9'
) as VideoCodec;
if (e2eeEnabled && (videoCodec === 'av1' || videoCodec === 'vp9')) {
videoCodec = undefined;