aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/live/shared/muxing-session.ts12
1 files changed, 0 insertions, 12 deletions
diff --git a/server/lib/live/shared/muxing-session.ts b/server/lib/live/shared/muxing-session.ts
index 0921254cb..6632499ff 100644
--- a/server/lib/live/shared/muxing-session.ts
+++ b/server/lib/live/shared/muxing-session.ts
@@ -17,7 +17,6 @@ import {
17import { VideoFileModel } from '@server/models/video/video-file' 17import { VideoFileModel } from '@server/models/video/video-file'
18import { VideoStreamingPlaylistModel } from '@server/models/video/video-streaming-playlist' 18import { VideoStreamingPlaylistModel } from '@server/models/video/video-streaming-playlist'
19import { MStreamingPlaylistVideo, MUserId, MVideoLiveVideo } from '@server/types/models' 19import { MStreamingPlaylistVideo, MUserId, MVideoLiveVideo } from '@server/types/models'
20import { wait } from '@shared/core-utils'
21import { VideoStorage, VideoStreamingPlaylistType } from '@shared/models' 20import { VideoStorage, VideoStreamingPlaylistType } from '@shared/models'
22import { 21import {
23 generateHLSMasterPlaylistFilename, 22 generateHLSMasterPlaylistFilename,
@@ -190,17 +189,6 @@ class MuxingSession extends EventEmitter {
190 if (this.masterPlaylistCreated === true) return 189 if (this.masterPlaylistCreated === true) return
191 190
192 try { 191 try {
193 let masterPlaylistContent: string
194
195 do {
196 masterPlaylistContent = await readFile(path, 'utf8')
197
198 if (!masterPlaylistContent) {
199 await wait(250)
200 logger.debug('Waiting for master playlist generation for ' + this.videoUUID, this.lTags())
201 }
202 } while (!masterPlaylistContent) // Not generated yet
203
204 if (this.streamingPlaylist.storage === VideoStorage.OBJECT_STORAGE) { 192 if (this.streamingPlaylist.storage === VideoStorage.OBJECT_STORAGE) {
205 const url = await storeHLSFileFromFilename(this.streamingPlaylist, this.streamingPlaylist.playlistFilename) 193 const url = await storeHLSFileFromFilename(this.streamingPlaylist, this.streamingPlaylist.playlistFilename)
206 194