permanentLive: boolean
privacy?: VideoPrivacy
}) {
- const { saveReplay, permanentLive, privacy } = options
+ const { saveReplay, permanentLive, privacy = VideoPrivacy.PUBLIC } = options
const { uuid } = await this.create({
...options,
name: 'live',
permanentLive,
saveReplay,
+ replaySettings: { privacy },
channelId: this.server.store.channel.id,
privacy
}
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.getPlaylistBaseUrl() + 'hls'
+ ? join(objectStorageBaseUrl, 'hls')
: server.url + '/static/streaming-playlists/hls'
let error = true
const segmentName = `${playlistNumber}-00000${segment}.ts`
const baseUrl = objectStorage
- ? ObjectStorageCommand.getPlaylistBaseUrl()
+ ? ObjectStorageCommand.getMockPlaylistBaseUrl()
: `${this.server.url}/static/streaming-playlists/hls`
const url = `${baseUrl}/${videoUUID}/${segmentName}`
const { playlistName, videoUUID, objectStorage = false } = options
const baseUrl = objectStorage
- ? ObjectStorageCommand.getPlaylistBaseUrl()
+ ? ObjectStorageCommand.getMockPlaylistBaseUrl()
: `${this.server.url}/static/streaming-playlists/hls`
const url = `${baseUrl}/${videoUUID}/${playlistName}`