Rename offline clip for clarity with typescript

This commit is contained in:
Gabe Kangas 2023-01-26 17:11:38 -08:00
parent a5a6587234
commit ba69bac6d9
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
4 changed files with 4 additions and 4 deletions

View File

@ -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)
}

View File

@ -92,7 +92,7 @@ func SetStreamAsDisconnected() {
_stats.LastConnectTime = nil
_broadcaster = nil
offlineFilename := "offline.ts"
offlineFilename := "offline.tsclip"
offlineFilePath, err := saveOfflineClipToDisk(offlineFilename)
if err != nil {

4
static/static.go vendored
View File

@ -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