diff --git a/www/webrtc/index.html b/www/webrtc/index.html index a2ec0d4f..d4eb1776 100644 --- a/www/webrtc/index.html +++ b/www/webrtc/index.html @@ -46,14 +46,14 @@
- - echo - push - play + + echo + push + play
- -
@@ -98,7 +98,7 @@ url = "http://127.0.0.1"+"/index/api/webrtc?app=live&stream=test&type=play" } document.getElementById('streamUrl').value = url - document.getElementsByName("methond").forEach((el,idx)=>{ + document.getElementsByName("method").forEach((el,idx)=>{ el.onclick=function(e){ let url = new URL(document.getElementById('streamUrl').value); url.searchParams.set("type",el.value) @@ -118,14 +118,14 @@ opt = document.createElement('option'); opt.text = r.label +"("+r.width+"x"+r.height+")"; opt.value = r; - document.getElementById("resilution").add(opt,null) + document.getElementById("resolution").add(opt,null) //console.log(opt.text.match(/\d+/g)) }) function start_play(){ - let elr = document.getElementById("resilution"); + let elr = document.getElementById("resolution"); let res = elr.options[elr.selectedIndex].text.match(/\d+/g); let h = parseInt(res.pop()); let w = parseInt(res.pop()); @@ -204,7 +204,7 @@ function start() { stop(); - let elr = document.getElementById("resilution"); + let elr = document.getElementById("resolution"); let res = elr.options[elr.selectedIndex].text.match(/\d+/g); let h = parseInt(res.pop()); let w = parseInt(res.pop());