Browse Source

Show max viewers

pull/5/head
Gabe Kangas 5 years ago
parent
commit
ce41b6ad40
  1. 2
      webroot/index.html
  2. 4
      webroot/js/app.js

2
webroot/index.html

@ -74,6 +74,8 @@ @@ -74,6 +74,8 @@
<div id="stream-info">
{{ streamStatus }} {{ viewerCount }} {{ 'viewer' | plural(viewerCount) }}.
Max {{ sessionMaxViewerCount }} {{ 'viewer' | plural(sessionMaxViewerCount) }},
{{ overallMaxViewerCount }} overall.
</div>
</div>

4
webroot/js/app.js

@ -59,7 +59,9 @@ async function getStatus() { @@ -59,7 +59,9 @@ async function getStatus() {
: "Stream is offline."
app.viewerCount = status.viewerCount
app.sessionMaxViewerCount = status.sessionMaxViewerCount
app.overallMaxViewerCount = status.overallMaxViewerCount
} catch (e) {
app.streamStatus = "Stream server is offline."
app.viewerCount = 0

Loading…
Cancel
Save