Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Hide viewer stats when in offline mode. Closes #66
Gabe Kangas830cbbc648cd
diff --git a/webroot/index.html b/webroot/index.htmlindex 4a711c9068..97e895a681 100644--- a/webroot/index.html+++ b/webroot/index.html@@ -78,9 +78,9 @@<section id="stream-info" aria-label="Stream status" v-cloak class="flex font-mono bg-gray-900 text-indigo-200 shadow-md border-b border-gray-100 border-solid"><span>{{ streamStatus }}</span>- <span>{{ viewerCount }} {{ 'viewer' | plural(viewerCount) }}.</span>- <span>Max {{ sessionMaxViewerCount }} {{ 'viewer' | plural(sessionMaxViewerCount) }}.</span>- <span>{{ overallMaxViewerCount }} overall.</span>+ <span v-if="isOnline">{{ viewerCount }} {{ 'viewer' | plural(viewerCount) }}.</span>+ <span v-if="isOnline">Max {{ sessionMaxViewerCount }} {{ 'viewer' | plural(sessionMaxViewerCount) }}.</span>+ <span v-if="isOnline">{{ overallMaxViewerCount }} overall.</span></section></main>diff --git a/webroot/js/app.js b/webroot/js/app.jsindex d690a26e8b..a89e4a7c86 100644--- a/webroot/js/app.js+++ b/webroot/js/app.js@@ -51,6 +51,7 @@ class Owncast {sessionMaxViewerCount: 0,streamStatus: MESSAGE_OFFLINE, // Default state.viewerCount: 0,+ isOnline: false,// from configappVersion: '',@@ -281,6 +282,7 @@ class Owncast {// stop status timer and disable chat after some time.handleOfflineMode() {+ this.vueApp.isOnline = false;clearInterval(this.streamDurationTimer);this.vueApp.streamStatus = MESSAGE_OFFLINE;if (this.streamStatus) {@@ -293,6 +295,7 @@ class Owncast {// play video!handleOnlineMode() {this.vueApp.playerOn = true;+ this.vueApp.isOnline = true;this.vueApp.streamStatus = MESSAGE_ONLINE;this.player.startPlayer();