From ba69bac6d914e4e7c26fc27c71aa72c23b3d2a3b Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Thu, 26 Jan 2023 17:11:38 -0800 Subject: [PATCH] Rename offline clip for clarity with typescript --- core/core.go | 2 +- core/streamState.go | 2 +- static/{offline.ts => offline.tsclip} | Bin static/static.go | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) rename static/{offline.ts => offline.tsclip} (100%) diff --git a/core/core.go b/core/core.go index aefcd3a20..14c10a79a 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.go index 8013c18da..ca56f8193 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.tsclip similarity index 100% rename from static/offline.ts rename to static/offline.tsclip diff --git a/static/static.go b/static/static.go index e706109be..ab3f81786 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.tsclip var 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