Fix save to disk examples

This commit is contained in:
Joe Turki
2025-02-27 14:12:24 +02:00
parent bdfe07a07c
commit 38fdb70355
3 changed files with 3 additions and 5 deletions

View File

@@ -24,9 +24,7 @@ navigator.mediaDevices.getUserMedia({ video: true, audio: true })
pc.oniceconnectionstatechange = e => log(pc.iceConnectionState)
pc.onicecandidate = event => {
if (event.candidate === null) {
document.getElementById('localSessionDescription').value = btoa(JSON.stringify(pc.localDescription))
}
document.getElementById('localSessionDescription').value = btoa(JSON.stringify(pc.localDescription))
}
window.startSession = () => {