From c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 17 Sep 2020 09:20:52 +0200 Subject: Live streaming implementation first step --- scripts/create-transcoding-job.ts | 2 +- scripts/update-host.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/create-transcoding-job.ts b/scripts/create-transcoding-job.ts index 7ee0050e3..78eb455aa 100755 --- a/scripts/create-transcoding-job.ts +++ b/scripts/create-transcoding-job.ts @@ -43,7 +43,7 @@ async function run () { if (program.generateHls) { const resolutionsEnabled = program.resolution ? [ program.resolution ] - : computeResolutionsToTranscode(videoFileResolution).concat([ videoFileResolution ]) + : computeResolutionsToTranscode(videoFileResolution, 'vod').concat([ videoFileResolution ]) for (const resolution of resolutionsEnabled) { dataInput.push({ diff --git a/scripts/update-host.ts b/scripts/update-host.ts index 2efe326a2..d2fb19c76 100755 --- a/scripts/update-host.ts +++ b/scripts/update-host.ts @@ -130,7 +130,7 @@ async function run () { for (const playlist of video.VideoStreamingPlaylists) { playlist.playlistUrl = WEBSERVER.URL + VideoStreamingPlaylistModel.getHlsMasterPlaylistStaticPath(video.uuid) - playlist.segmentsSha256Url = WEBSERVER.URL + VideoStreamingPlaylistModel.getHlsSha256SegmentsStaticPath(video.uuid) + playlist.segmentsSha256Url = WEBSERVER.URL + VideoStreamingPlaylistModel.getHlsSha256SegmentsStaticPath(video.uuid, video.isLive) await playlist.save() } -- cgit v1.2.3