1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2024-12-22 16:12: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) { 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;
} }

View File

@ -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}}