Fix status checking loop.
This commit is contained in:
parent
7e85a38613
commit
90e7e9082b
@ -48,7 +48,6 @@ async function getStatus() {
|
|||||||
app.streamStatus = "Stream server is offline."
|
app.streamStatus = "Stream server is offline."
|
||||||
}
|
}
|
||||||
|
|
||||||
setInterval(getStatus, 5000)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function setupWebsocket() {
|
function setupWebsocket() {
|
||||||
@ -66,6 +65,7 @@ function setupWebsocket() {
|
|||||||
setupApp()
|
setupApp()
|
||||||
getStatus();
|
getStatus();
|
||||||
setupWebsocket()
|
setupWebsocket()
|
||||||
|
setInterval(getStatus, 5000)
|
||||||
|
|
||||||
var video = document.getElementById("video")
|
var video = document.getElementById("video")
|
||||||
var videoSrc = "hls/stream.m3u8"
|
var videoSrc = "hls/stream.m3u8"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user