Browse Source

Rename offline clip for clarity with typescript

pull/2633/head
Gabe Kangas 2 years ago
parent
commit
ba69bac6d9
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 2
      core/core.go
  2. 2
      core/streamState.go
  3. 0
      static/offline.tsclip
  4. 4
      static/static.go

2
core/core.go

@ -102,7 +102,7 @@ func transitionToOfflineVideoStreamContent() { @@ -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)
}

2
core/streamState.go

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

0
static/offline.ts → static/offline.tsclip vendored

4
static/static.go vendored

@ -51,12 +51,12 @@ func GetWebIndexTemplate() (*template.Template, error) { @@ -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

Loading…
Cancel
Save