diff options
Diffstat (limited to 'server/lib/live')
-rw-r--r-- | server/lib/live/live-manager.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/lib/live/live-manager.ts b/server/lib/live/live-manager.ts index 5c6e69806..acb7af274 100644 --- a/server/lib/live/live-manager.ts +++ b/server/lib/live/live-manager.ts | |||
@@ -399,6 +399,8 @@ class LiveManager { | |||
399 | } | 399 | } |
400 | 400 | ||
401 | PeerTubeSocket.Instance.sendVideoLiveNewState(video) | 401 | PeerTubeSocket.Instance.sendVideoLiveNewState(video) |
402 | |||
403 | Hooks.runAction('action:live.video.state.updated', { video }) | ||
402 | } catch (err) { | 404 | } catch (err) { |
403 | logger.error('Cannot save/federate live video %d.', videoId, { err, ...localLTags }) | 405 | logger.error('Cannot save/federate live video %d.', videoId, { err, ...localLTags }) |
404 | } | 406 | } |
@@ -466,6 +468,8 @@ class LiveManager { | |||
466 | PeerTubeSocket.Instance.sendVideoLiveNewState(fullVideo) | 468 | PeerTubeSocket.Instance.sendVideoLiveNewState(fullVideo) |
467 | 469 | ||
468 | await federateVideoIfNeeded(fullVideo, false) | 470 | await federateVideoIfNeeded(fullVideo, false) |
471 | |||
472 | Hooks.runAction('action:live.video.state.updated', { video: fullVideo }) | ||
469 | } catch (err) { | 473 | } catch (err) { |
470 | logger.error('Cannot save/federate new video state of live streaming of video %s.', videoUUID, { err, ...lTags(videoUUID) }) | 474 | logger.error('Cannot save/federate new video state of live streaming of video %s.', videoUUID, { err, ...lTags(videoUUID) }) |
471 | } | 475 | } |