]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/live/shared/muxing-session.ts
Force stop remote live transcoding
[github/Chocobozzz/PeerTube.git] / server / lib / live / shared / muxing-session.ts
index 0921254cbf5360bda6d818a7c2dbfa335856fb96..c672ec4d6c28db87bfe39f3cbd2a15422f1abcc4 100644 (file)
@@ -17,7 +17,6 @@ import {
 import { VideoFileModel } from '@server/models/video/video-file'
 import { VideoStreamingPlaylistModel } from '@server/models/video/video-streaming-playlist'
 import { MStreamingPlaylistVideo, MUserId, MVideoLiveVideo } from '@server/types/models'
-import { wait } from '@shared/core-utils'
 import { VideoStorage, VideoStreamingPlaylistType } from '@shared/models'
 import {
   generateHLSMasterPlaylistFilename,
@@ -190,17 +189,6 @@ class MuxingSession extends EventEmitter {
       if (this.masterPlaylistCreated === true) return
 
       try {
-        let masterPlaylistContent: string
-
-        do {
-          masterPlaylistContent = await readFile(path, 'utf8')
-
-          if (!masterPlaylistContent) {
-            await wait(250)
-            logger.debug('Waiting for master playlist generation for ' + this.videoUUID, this.lTags())
-          }
-        } while (!masterPlaylistContent) // Not generated yet
-
         if (this.streamingPlaylist.storage === VideoStorage.OBJECT_STORAGE) {
           const url = await storeHLSFileFromFilename(this.streamingPlaylist, this.streamingPlaylist.playlistFilename)
 
@@ -489,6 +477,7 @@ class MuxingSession extends EventEmitter {
 
       lTags: this.lTags,
 
+      sessionId: this.sessionId,
       inputLocalUrl: this.inputLocalUrl,
       inputPublicUrl: this.inputPublicUrl,