mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 12:49:37 +03:00
Show max viewers
This commit is contained in:
parent
4553ae628b
commit
ce41b6ad40
2 changed files with 5 additions and 1 deletions
|
@ -74,6 +74,8 @@
|
||||||
|
|
||||||
<div id="stream-info">
|
<div id="stream-info">
|
||||||
{{ streamStatus }} {{ viewerCount }} {{ 'viewer' | plural(viewerCount) }}.
|
{{ streamStatus }} {{ viewerCount }} {{ 'viewer' | plural(viewerCount) }}.
|
||||||
|
Max {{ sessionMaxViewerCount }} {{ 'viewer' | plural(sessionMaxViewerCount) }},
|
||||||
|
{{ overallMaxViewerCount }} overall.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -59,6 +59,8 @@ async function getStatus() {
|
||||||
: "Stream is offline."
|
: "Stream is offline."
|
||||||
|
|
||||||
app.viewerCount = status.viewerCount
|
app.viewerCount = status.viewerCount
|
||||||
|
app.sessionMaxViewerCount = status.sessionMaxViewerCount
|
||||||
|
app.overallMaxViewerCount = status.overallMaxViewerCount
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
app.streamStatus = "Stream server is offline."
|
app.streamStatus = "Stream server is offline."
|
||||||
|
|
Loading…
Reference in a new issue