Skip to content

Commit

Permalink
html: fix syntax problem in iceServers (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
dong-zeyu committed Jun 26, 2023
1 parent 01b0e96 commit afff8b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions html/control.html
Original file line number Diff line number Diff line change
Expand Up @@ -754,11 +754,11 @@ <h1>Release</h1>
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) {
Expand Down Expand Up @@ -819,4 +819,4 @@ <h1>Release</h1>
}
})
</script>
</html>
</html>
2 changes: 1 addition & 1 deletion html/webrtc.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit afff8b9

Please # to comment.