diff --git a/core/core.go b/core/core.go index 5b6e28262..ef7165d5b 100644 --- a/core/core.go +++ b/core/core.go @@ -104,7 +104,7 @@ func transitionToOfflineVideoStreamContent() { _transcoder.SetLatencyLevel(models.GetLatencyLevel(4)) _transcoder.SetIsEvent(true) - offlineFilePath, err := saveOfflineClipToDisk("offline.ts") + offlineFilePath, err := saveOfflineClipToDisk("offline-v2.ts") if err != nil { log.Fatalln("unable to save offline clip:", err) } diff --git a/core/offlineState.go b/core/offlineState.go index e1257c37f..4fb1c7e04 100644 --- a/core/offlineState.go +++ b/core/offlineState.go @@ -36,7 +36,7 @@ func appendOfflineToVariantPlaylist(index int, playlistFilePath string) { _, _ = atomicWriteTmpPlaylistFile.WriteString("#EXT-X-DISCONTINUITY\n") // If "offline" content gets changed then change the duration below _, _ = atomicWriteTmpPlaylistFile.WriteString("#EXTINF:8.000000,\n") - _, _ = atomicWriteTmpPlaylistFile.WriteString("offline.ts\n") + _, _ = atomicWriteTmpPlaylistFile.WriteString("offline-v2.ts\n") _, _ = atomicWriteTmpPlaylistFile.WriteString("#EXT-X-ENDLIST\n") if err := atomicWriteTmpPlaylistFile.Close(); err != nil { diff --git a/core/streamState.go b/core/streamState.go index 52b8b844e..cb6f10f5a 100644 --- a/core/streamState.go +++ b/core/streamState.go @@ -93,7 +93,7 @@ func SetStreamAsDisconnected() { _stats.LastConnectTime = nil _broadcaster = nil - offlineFilename := "offline.ts" + offlineFilename := "offline-v2.ts" offlineFilePath, err := saveOfflineClipToDisk(offlineFilename) if err != nil { diff --git a/static/offline-v2.ts b/static/offline-v2.ts new file mode 100644 index 000000000..3485c76ed Binary files /dev/null and b/static/offline-v2.ts differ diff --git a/static/offline.tsclip b/static/offline.tsclip deleted file mode 100644 index 1c67d0963..000000000 Binary files a/static/offline.tsclip and /dev/null differ diff --git a/static/static.go b/static/static.go index 6a115acda..c6edbbd7b 100644 --- a/static/static.go +++ b/static/static.go @@ -51,12 +51,12 @@ func GetWebIndexTemplate() (*template.Template, error) { return tmpl, err } -//go:embed offline.tsclip +//go:embed offline-v2.ts var offlineVideoSegment []byte // GetOfflineSegment will return the offline video segment data. func GetOfflineSegment() []byte { - return getFileSystemStaticFileOrDefault("offline.tsclip", offlineVideoSegment) + return getFileSystemStaticFileOrDefault("offline-v2.ts", offlineVideoSegment) } //go:embed img/logo.png