aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/extra-utils/videos/live.ts5
1 files changed, 5 insertions, 0 deletions
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
137 return waitWhileLiveState(url, token, videoId, VideoState.PUBLISHED) 137 return waitWhileLiveState(url, token, videoId, VideoState.PUBLISHED)
138} 138}
139 139
140function waitUntilLiveEnded (url: string, token: string, videoId: number | string) {
141 return waitWhileLiveState(url, token, videoId, VideoState.LIVE_ENDED)
142}
143
140async function waitWhileLiveState (url: string, token: string, videoId: number | string, state: VideoState) { 144async function waitWhileLiveState (url: string, token: string, videoId: number | string, state: VideoState) {
141 let video: VideoDetails 145 let video: VideoDetails
142 146
@@ -185,6 +189,7 @@ export {
185 checkLiveCleanup, 189 checkLiveCleanup,
186 stopFfmpeg, 190 stopFfmpeg,
187 sendRTMPStreamInVideo, 191 sendRTMPStreamInVideo,
192 waitUntilLiveEnded,
188 waitFfmpegUntilError, 193 waitFfmpegUntilError,
189 sendRTMPStream, 194 sendRTMPStream,
190 testFfmpegStreamError 195 testFfmpegStreamError