From 8059e050ef4e800c95851ac97abbb2330fe17882 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 27 Jan 2023 08:30:56 +0100 Subject: Fix live with base url object storage --- shared/server-commands/videos/live-command.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'shared/server-commands') diff --git a/shared/server-commands/videos/live-command.ts b/shared/server-commands/videos/live-command.ts index cc9502c6f..4541465ba 100644 --- a/shared/server-commands/videos/live-command.ts +++ b/shared/server-commands/videos/live-command.ts @@ -192,12 +192,20 @@ export class LiveCommand extends AbstractCommand { playlistNumber: number segment: number objectStorage: boolean + objectStorageBaseUrl?: string }) { - const { server, objectStorage, playlistNumber, segment, videoUUID } = options + const { + server, + objectStorage, + playlistNumber, + segment, + videoUUID, + objectStorageBaseUrl = ObjectStorageCommand.getMockPlaylistBaseUrl() + } = options const segmentName = `${playlistNumber}-00000${segment}.ts` const baseUrl = objectStorage - ? ObjectStorageCommand.getMockPlaylistBaseUrl() + 'hls' + ? join(objectStorageBaseUrl, 'hls') : server.url + '/static/streaming-playlists/hls' let error = true -- cgit v1.2.3