Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Rename offline clip for clarity with typescript

Gabe Kangase1940de262c1
diff --git a/core/core.go b/core/core.go
index 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.go
index 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.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 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.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