mirror of
https://github.com/owncast/owncast.git
synced 2024-11-24 05:38:58 +03:00
Rename offline clip for clarity with typescript
This commit is contained in:
parent
a5a6587234
commit
ba69bac6d9
4 changed files with 4 additions and 4 deletions
|
@ -102,7 +102,7 @@ func transitionToOfflineVideoStreamContent() {
|
||||||
_transcoder.SetLatencyLevel(models.GetLatencyLevel(4))
|
_transcoder.SetLatencyLevel(models.GetLatencyLevel(4))
|
||||||
_transcoder.SetIsEvent(true)
|
_transcoder.SetIsEvent(true)
|
||||||
|
|
||||||
offlineFilePath, err := saveOfflineClipToDisk("offline.ts")
|
offlineFilePath, err := saveOfflineClipToDisk("offline.tsclip")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln("unable to save offline clip:", err)
|
log.Fatalln("unable to save offline clip:", err)
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,7 +92,7 @@ func SetStreamAsDisconnected() {
|
||||||
_stats.LastConnectTime = nil
|
_stats.LastConnectTime = nil
|
||||||
_broadcaster = nil
|
_broadcaster = nil
|
||||||
|
|
||||||
offlineFilename := "offline.ts"
|
offlineFilename := "offline.tsclip"
|
||||||
|
|
||||||
offlineFilePath, err := saveOfflineClipToDisk(offlineFilename)
|
offlineFilePath, err := saveOfflineClipToDisk(offlineFilename)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
0
static/offline.ts → static/offline.tsclip
vendored
0
static/offline.ts → static/offline.tsclip
vendored
4
static/static.go
vendored
4
static/static.go
vendored
|
@ -51,12 +51,12 @@ func GetWebIndexTemplate() (*template.Template, error) {
|
||||||
return tmpl, err
|
return tmpl, err
|
||||||
}
|
}
|
||||||
|
|
||||||
//go:embed offline.ts
|
//go:embed offline.tsclip
|
||||||
var offlineVideoSegment []byte
|
var offlineVideoSegment []byte
|
||||||
|
|
||||||
// GetOfflineSegment will return the offline video segment data.
|
// GetOfflineSegment will return the offline video segment data.
|
||||||
func GetOfflineSegment() []byte {
|
func GetOfflineSegment() []byte {
|
||||||
return getFileSystemStaticFileOrDefault("offline.ts", offlineVideoSegment)
|
return getFileSystemStaticFileOrDefault("offline.tsclip", offlineVideoSegment)
|
||||||
}
|
}
|
||||||
|
|
||||||
//go:embed img/logo.png
|
//go:embed img/logo.png
|
||||||
|
|
Loading…
Reference in a new issue