1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2024-12-22 11:32:19 +00:00

Debugging player

This commit is contained in:
Yohann D'ANELLO 2020-11-09 16:32:35 +01:00
parent 9625cba5e1
commit d334556d2b
2 changed files with 5 additions and 3 deletions

View File

@ -65,10 +65,10 @@ export function initViewerPage(stream, viewersCounterRefreshPeriod, posterUrl) {
if (error.code === 501 || error.code === 406) {
// Clear messages
const errorMsg = document.getElementsByClassName("op-message-text")[0]
errorMsg.textContent = ""
//errorMsg.textContent = ""
const warningIcon = document.getElementsByClassName("op-message-icon")[0]
warningIcon.textContent = ""
//warningIcon.textContent = ""
// Reload in 30s
setTimeout(function () {
@ -99,4 +99,6 @@ export function initViewerPage(stream, viewersCounterRefreshPeriod, posterUrl) {
break;
}
});
return player;
}

View File

@ -50,6 +50,6 @@
"{{$value}}",
{{end}}
]
initViewerPage(stream, /*stunServers,*/ viewersCounterRefreshPeriod, {{.Cfg.PlayerPoster}})
let player = initViewerPage(stream, /*stunServers,*/ viewersCounterRefreshPeriod, {{.Cfg.PlayerPoster}})
</script>
{{end}}