Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Fix timeout buffer after going offline. Closes #84
Gabe Kangas15dc846aa5f1
diff --git a/core/status.go b/core/status.goindex 56ec3c4680..6c892334a8 100644--- a/core/status.go+++ b/core/status.go@@ -29,6 +29,7 @@ func GetStatus() models.Status {func SetStreamAsConnected() {_stats.StreamConnected = true_stats.LastConnectTime = utils.NullTime{time.Now(), true}+ _stats.LastDisconnectTime = utils.NullTime{time.Now(), false}timeSinceDisconnect := time.Since(_stats.LastDisconnectTime.Time).Minutes()if timeSinceDisconnect > 15 {diff --git a/webroot/js/app.js b/webroot/js/app.jsindex a89e4a7c86..1c2515d85d 100644--- a/webroot/js/app.js+++ b/webroot/js/app.js@@ -286,7 +286,7 @@ class Owncast {clearInterval(this.streamDurationTimer);this.vueApp.streamStatus = MESSAGE_OFFLINE;if (this.streamStatus) {- const remainingChatTime = TIMER_DISABLE_CHAT_AFTER_OFFLINE - (Date.now() - new Date(this.streamStatus.lastDisconnectTime));+ const remainingChatTime = TIMER_DISABLE_CHAT_AFTER_OFFLINE - (Date.now() - new Date(this.lastDisconnectTime));const countdown = (remainingChatTime < 0) ? 0 : remainingChatTime;this.disableChatTimer = setTimeout(this.messagingInterface.disableChat, countdown);}