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) {
|
||||
// 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;
|
||||
}
|
||||
|
|
|
@ -50,6 +50,6 @@
|
|||
"{{$value}}",
|
||||
{{end}}
|
||||
]
|
||||
initViewerPage(stream, /*stunServers,*/ viewersCounterRefreshPeriod, {{.Cfg.PlayerPoster}})
|
||||
let player = initViewerPage(stream, /*stunServers,*/ viewersCounterRefreshPeriod, {{.Cfg.PlayerPoster}})
|
||||
</script>
|
||||
{{end}}
|
||||
|
|
Loading…
Reference in New Issue