getElementById("preview");
        const url = document.getElementById("url");
        const status = document.getElementById("status");
        const token = document.getElementById("token");
        const pcConfig = { iceServers: [{ urls: "stun:stun.l.google.com:19302" }] };
        const mediaConstraints = { video: true, audio: true };

        const connect = async () => {
            connStatus.innerHTML = "Connecting..."
            const localStream = await navigator.mediaDevices.getUserMedia(mediaCo