import { formatChatMessageLinks, LiveKitRoom, VideoConference } from '@livekit/components-react'; import { LogLevel } from 'livekit-client'; import { useRouter } from 'next/router'; import { DebugMode } from '../../lib/Debug'; export default function CustomRoomConnection() { const router = useRouter(); const { liveKitUrl, token } = router.query; if (typeof liveKitUrl !== 'string') { return

Missing LiveKit URL

; } if (typeof token !== 'string') { return

Missing LiveKit token

; } return (
{liveKitUrl && ( )}
); }