html: fix syntax problem in iceServers (#77)
This commit is contained in:
parent
01b0e969b3
commit
afff8b9d78
@ -754,11 +754,11 @@
|
||||
show(videoContainer);
|
||||
|
||||
const iceServers = [
|
||||
[ { urls: ['stun:stun.l.google.com:19302'] } ]
|
||||
{ urls: ['stun:stun.l.google.com:19302'] }
|
||||
];
|
||||
|
||||
fetch(webrtcURL, {
|
||||
body: JSON.stringify({type: 'request'}),
|
||||
body: JSON.stringify({type: 'request', iceServers: iceServers}),
|
||||
headers: {'Content-Type': 'application/json'},
|
||||
method: 'POST'
|
||||
}).then(function(response) {
|
||||
@ -819,4 +819,4 @@
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -48,7 +48,7 @@
|
||||
<script>
|
||||
function startWebRTC() {
|
||||
const iceServers = [
|
||||
[ { urls: ['stun:stun.l.google.com:19302'] } ]
|
||||
{ urls: ['stun:stun.l.google.com:19302'] }
|
||||
];
|
||||
|
||||
var pc = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user