import { videoCodecs } from 'livekit-client'; import { VideoConferenceClientImpl } from './VideoConferenceClientImpl'; import { isVideoCodec } from '@/lib/types'; export default async function CustomRoomConnection(props: { searchParams: Promise<{ liveKitUrl?: string; token?: string; codec?: string; }>; }) { const { liveKitUrl, token, codec } = await props.searchParams; if (typeof liveKitUrl !== 'string') { return