From 0e856b78e9b6aca5e6a48a04af8b747dbc69658f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 26 Nov 2020 15:16:30 +0100 Subject: Try to fix live test --- shared/extra-utils/videos/live.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'shared/extra-utils') diff --git a/shared/extra-utils/videos/live.ts b/shared/extra-utils/videos/live.ts index 266baaed3..346134969 100644 --- a/shared/extra-utils/videos/live.ts +++ b/shared/extra-utils/videos/live.ts @@ -137,6 +137,10 @@ function waitUntilLivePublished (url: string, token: string, videoId: number | s return waitWhileLiveState(url, token, videoId, VideoState.PUBLISHED) } +function waitUntilLiveEnded (url: string, token: string, videoId: number | string) { + return waitWhileLiveState(url, token, videoId, VideoState.LIVE_ENDED) +} + async function waitWhileLiveState (url: string, token: string, videoId: number | string, state: VideoState) { let video: VideoDetails @@ -185,6 +189,7 @@ export { checkLiveCleanup, stopFfmpeg, sendRTMPStreamInVideo, + waitUntilLiveEnded, waitFfmpegUntilError, sendRTMPStream, testFfmpegStreamError -- cgit v1.2.3