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