Fix YP not being fired post-merges
This commit is contained in:
@@ -25,6 +25,9 @@ func SetStreamAsConnected() {
|
|||||||
_stats.LastDisconnectTime = utils.NullTime{time.Now(), false}
|
_stats.LastDisconnectTime = utils.NullTime{time.Now(), false}
|
||||||
|
|
||||||
StopCleanupTimer()
|
StopCleanupTimer()
|
||||||
|
if _yp != nil {
|
||||||
|
_yp.Start()
|
||||||
|
}
|
||||||
|
|
||||||
segmentPath := config.PublicHLSStoragePath
|
segmentPath := config.PublicHLSStoragePath
|
||||||
if config.Config.S3.Enabled {
|
if config.Config.S3.Enabled {
|
||||||
@@ -52,6 +55,9 @@ func SetStreamAsDisconnected() {
|
|||||||
offlineFilePath := "static/" + offlineFilename
|
offlineFilePath := "static/" + offlineFilename
|
||||||
|
|
||||||
ffmpeg.StopThumbnailGenerator()
|
ffmpeg.StopThumbnailGenerator()
|
||||||
|
if _yp != nil {
|
||||||
|
_yp.Stop()
|
||||||
|
}
|
||||||
|
|
||||||
for index := range config.Config.GetVideoStreamQualities() {
|
for index := range config.Config.GetVideoStreamQualities() {
|
||||||
playlistFilePath := fmt.Sprintf(filepath.Join(config.PrivateHLSStoragePath, "%d/stream.m3u8"), index)
|
playlistFilePath := fmt.Sprintf(filepath.Join(config.PrivateHLSStoragePath, "%d/stream.m3u8"), index)
|
||||||
|
|||||||
Reference in New Issue
Block a user