diff --git a/pages/rooms/[name].tsx b/pages/rooms/[name].tsx index be6b3f6..152664c 100644 --- a/pages/rooms/[name].tsx +++ b/pages/rooms/[name].tsx @@ -110,7 +110,7 @@ const ActiveRoom = ({ roomName, userChoices, onLeave }: ActiveRoomProps) => { const keyProvider = new ExternalE2EEKeyProvider(); const roomOptions = React.useMemo((): RoomOptions => { - let videoCodec: VideoCodec | undefined = codec ?? 'av1'; + let videoCodec: VideoCodec | undefined = (codec as VideoCodec) ?? 'av1'; if (e2eeEnabled && (videoCodec === 'av1' || videoCodec === 'vp9')) { videoCodec = undefined; }