Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Mute the 'stream ended' clip's audio (#3630)
Vivian Lim ⭐a3ac130575e1
diff --git a/core/core.go b/core/core.goindex 5b6e282627..ef7165d5bc 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.goindex e1257c37f7..4fb1c7e047 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.goindex 52b8b844ea..cb6f10f5a5 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.tsnew file mode 100644index 0000000000..3485c76ed8Binary files /dev/null and b/static/offline-v2.ts differdiff --git a/static/offline.tsclip b/static/offline.tsclipdeleted file mode 100644index 1c67d0963a..0000000000Binary files a/static/offline.tsclip and /dev/null differdiff --git a/static/static.go b/static/static.goindex 6a115acda8..c6edbbd7b7 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.tsvar 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