mirror of
https://github.com/pion/webrtc.git
synced 2025-10-13 02:43:48 +08:00
Fix save to disk examples
This commit is contained in:
@@ -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 = () => {
|
||||
|
Reference in New Issue
Block a user