mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Merge branch 'release/5.0.0' into develop
This commit is contained in:
commit
a2be43f570
7 changed files with 99 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue