async sendRTMPStreamInVideo (options: OverrideCommandOptions & {
videoId: number | string
fixtureName?: string
+ copyCodecs?: boolean
}) {
- const { videoId, fixtureName } = options
+ const { videoId, fixtureName, copyCodecs } = options
const videoLive = await this.get({ videoId })
- return sendRTMPStream(videoLive.rtmpUrl, videoLive.streamKey, fixtureName)
+ return sendRTMPStream({ rtmpBaseUrl: videoLive.rtmpUrl, streamKey: videoLive.streamKey, fixtureName, copyCodecs })
}
async runAndTestStreamError (options: OverrideCommandOptions & {
video = await this.server.videos.getWithToken({ token: options.token, id: options.videoId })
await wait(500)
- } while (video.isLive === true && video.state.id !== VideoState.PUBLISHED)
+ } while (video.isLive === true || video.state.id !== VideoState.PUBLISHED)
}
async countPlaylists (options: OverrideCommandOptions & {