Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Rename offline clip for clarity with typescript
Gabe Kangase1940de262c1
diff --git a/core/core.go b/core/core.goindex aefcd3a20b..14c10a79a1 100644--- a/core/core.go+++ b/core/core.go@@ -102,7 +102,7 @@ func transitionToOfflineVideoStreamContent() {_transcoder.SetLatencyLevel(models.GetLatencyLevel(4))_transcoder.SetIsEvent(true)- offlineFilePath, err := saveOfflineClipToDisk("offline.ts")+ offlineFilePath, err := saveOfflineClipToDisk("offline.tsclip")if err != nil {log.Fatalln("unable to save offline clip:", err)}diff --git a/core/streamState.go b/core/streamState.goindex 8013c18da9..ca56f8193d 100644--- a/core/streamState.go+++ b/core/streamState.go@@ -92,7 +92,7 @@ func SetStreamAsDisconnected() {_stats.LastConnectTime = nil_broadcaster = nil- offlineFilename := "offline.ts"+ offlineFilename := "offline.tsclip"offlineFilePath, err := saveOfflineClipToDisk(offlineFilename)if err != nil {diff --git a/static/offline.ts b/static/offline.tsclipsimilarity index 100%rename from static/offline.tsrename to static/offline.tsclipdiff --git a/static/static.go b/static/static.goindex e706109bef..ab3f817865 100644--- a/static/static.go+++ b/static/static.go@@ -51,12 +51,12 @@ func GetWebIndexTemplate() (*template.Template, error) {return tmpl, err}-//go:embed offline.ts+//go:embed offline.tsclipvar offlineVideoSegment []byte// GetOfflineSegment will return the offline video segment data.func GetOfflineSegment() []byte {- return getFileSystemStaticFileOrDefault("offline.ts", offlineVideoSegment)+ return getFileSystemStaticFileOrDefault("offline.tsclip", offlineVideoSegment)}//go:embed img/logo.png