aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/extra-utils/videos/live.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/shared/extra-utils/videos/live.ts b/shared/extra-utils/videos/live.ts
index cbcfc09e4..98f67a9bb 100644
--- a/shared/extra-utils/videos/live.ts
+++ b/shared/extra-utils/videos/live.ts
@@ -119,7 +119,7 @@ async function testFfmpegStreamError (command: ffmpeg.FfmpegCommand, shouldHaveE
119 let error: Error 119 let error: Error
120 120
121 try { 121 try {
122 await waitFfmpegUntilError(command, 15000) 122 await waitFfmpegUntilError(command, 25000)
123 } catch (err) { 123 } catch (err) {
124 error = err 124 error = err
125 } 125 }
@@ -140,6 +140,10 @@ function waitUntilLivePublished (url: string, token: string, videoId: number | s
140 return waitUntilLiveState(url, token, videoId, VideoState.PUBLISHED) 140 return waitUntilLiveState(url, token, videoId, VideoState.PUBLISHED)
141} 141}
142 142
143function waitUntilLiveWaiting (url: string, token: string, videoId: number | string) {
144 return waitUntilLiveState(url, token, videoId, VideoState.WAITING_FOR_LIVE)
145}
146
143function waitUntilLiveEnded (url: string, token: string, videoId: number | string) { 147function waitUntilLiveEnded (url: string, token: string, videoId: number | string) {
144 return waitUntilLiveState(url, token, videoId, VideoState.LIVE_ENDED) 148 return waitUntilLiveState(url, token, videoId, VideoState.LIVE_ENDED)
145} 149}
@@ -206,6 +210,7 @@ export {
206 checkLiveCleanup, 210 checkLiveCleanup,
207 waitUntilLiveSegmentGeneration, 211 waitUntilLiveSegmentGeneration,
208 stopFfmpeg, 212 stopFfmpeg,
213 waitUntilLiveWaiting,
209 sendRTMPStreamInVideo, 214 sendRTMPStreamInVideo,
210 waitUntilLiveEnded, 215 waitUntilLiveEnded,
211 waitFfmpegUntilError, 216 waitFfmpegUntilError,