mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 17:22:20 +00:00
Debugging player
This commit is contained in:
parent
9625cba5e1
commit
d334556d2b
@ -65,10 +65,10 @@ export function initViewerPage(stream, viewersCounterRefreshPeriod, posterUrl) {
|
|||||||
if (error.code === 501 || error.code === 406) {
|
if (error.code === 501 || error.code === 406) {
|
||||||
// Clear messages
|
// Clear messages
|
||||||
const errorMsg = document.getElementsByClassName("op-message-text")[0]
|
const errorMsg = document.getElementsByClassName("op-message-text")[0]
|
||||||
errorMsg.textContent = ""
|
//errorMsg.textContent = ""
|
||||||
|
|
||||||
const warningIcon = document.getElementsByClassName("op-message-icon")[0]
|
const warningIcon = document.getElementsByClassName("op-message-icon")[0]
|
||||||
warningIcon.textContent = ""
|
//warningIcon.textContent = ""
|
||||||
|
|
||||||
// Reload in 30s
|
// Reload in 30s
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
@ -99,4 +99,6 @@ export function initViewerPage(stream, viewersCounterRefreshPeriod, posterUrl) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return player;
|
||||||
}
|
}
|
||||||
|
@ -50,6 +50,6 @@
|
|||||||
"{{$value}}",
|
"{{$value}}",
|
||||||
{{end}}
|
{{end}}
|
||||||
]
|
]
|
||||||
initViewerPage(stream, /*stunServers,*/ viewersCounterRefreshPeriod, {{.Cfg.PlayerPoster}})
|
let player = initViewerPage(stream, /*stunServers,*/ viewersCounterRefreshPeriod, {{.Cfg.PlayerPoster}})
|
||||||
</script>
|
</script>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
Loading…
Reference in New Issue
Block a user