fix: correct go2rtc player URL — stream.html not root

This commit is contained in:
Claus Lohmar 2026-08-05 14:02:00 +01:00
parent 0b5dc7d88e
commit 03448361da

View file

@ -85,7 +85,7 @@ function renderLiveGrid() {
if (img) img.src = `/recordings/${cam.name || cam.id}/latest.jpg?t=${Date.now()}`; if (img) img.src = `/recordings/${cam.name || cam.id}/latest.jpg?t=${Date.now()}`;
}, 3000); }, 3000);
tile.addEventListener('click', () => { tile.addEventListener('click', () => {
window.open(`http://${location.hostname}:1984/?src=${cam.id}_sub`, '_blank'); window.open(`http://${location.hostname}:1984/stream.html?src=${cam.id}_sub`, '_blank');
}); });
} else { } else {
tile.innerHTML = '<span class="tile-placeholder">No Camera</span>'; tile.innerHTML = '<span class="tile-placeholder">No Camera</span>';