diff --git a/internal/web/ui/templates/monitor.html b/internal/web/ui/templates/monitor.html index f98a08f..07caa3a 100644 --- a/internal/web/ui/templates/monitor.html +++ b/internal/web/ui/templates/monitor.html @@ -22,7 +22,7 @@ function loadAll() { var devices = [ {{range .Devices}}{{if .Online}} - {id:"{{.DeviceID}}",name:"{{.DisplayName}}"}, + {id:"{{.DeviceID}}",name:"{{.DisplayName}}",ip:"{{.IP}}",media:"{{.MediaPort}}"}, {{end}}{{end}} ]; if (devices.length === 0) { @@ -36,7 +36,7 @@ function loadAll() { .then(function(data) { var chs = data.channels || []; return chs.map(function(ch) { - return {device:dev.name, channel:ch.name, url:ch.hls_url}; + return {device:dev.name, channel:ch.name, ip:dev.ip, media:dev.media}; }); }) .catch(function() { return []; }); @@ -49,17 +49,14 @@ function loadAll() { wall.innerHTML = '