lert('Please paste the answer in the application.');
            }
        }

        const offer = JSON.parse(document.getElementById('send-text').value);
        await pc.setRemoteDescription(offer);

        const media = await navigator.mediaDevices.getUserMedia({
            video: {
                width: 1280,
                height: 720
            }
        });
        media.getTracks().forEach(track => pc.addTrack(track, media));

        const answer = await pc.createAnswer();
        await pc.se