+ hasSession (sessionId: string) {
+ return this.getContext().sessions.has(sessionId)
+ }
+
+ stopSessionOf (videoUUID: string, error: LiveVideoError | null) {
+ const sessionId = this.videoSessions.get(videoUUID)
+ if (!sessionId) {
+ logger.debug('No live session to stop for video %s', videoUUID, lTags(sessionId, videoUUID))
+ return
+ }
+
+ logger.info('Stopping live session of video %s', videoUUID, { error, ...lTags(sessionId, videoUUID) })