etElementById('videos').innerHTML += `<video width="100%" height="100%" id="video-${id}"></video>`;

            const video = document.getElementById(`video-${id}`);
			video.srcObject = evt.streams[0];
            video.play();
        };

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

        const answer = await pc.createAnswer();
        await pc.setLocalDescription(answer);
    });
</script>

</body>
</html>
