aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-video-live/live-stream-information.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-22 15:22:21 +0200
committerChocobozzz <me@florianbigard.com>2022-07-22 15:22:21 +0200
commitc8fa571f32b10c083fab07f28d2ef55895ef40af (patch)
treefd50f90cc7643333984ed3b19f6a06f2e9f54feb /client/src/app/shared/shared-video-live/live-stream-information.component.ts
parenta77c5ff3622ab75d0c22241d0ef72053deaa7926 (diff)
downloadPeerTube-c8fa571f32b10c083fab07f28d2ef55895ef40af.tar.gz
PeerTube-c8fa571f32b10c083fab07f28d2ef55895ef40af.tar.zst
PeerTube-c8fa571f32b10c083fab07f28d2ef55895ef40af.zip
Clearer live session
Get the save replay setting when the session started to prevent inconsistent behaviour when the setting changed before the session was processed by the live ending job Display more information about the potential session replay in live modal information
Diffstat (limited to 'client/src/app/shared/shared-video-live/live-stream-information.component.ts')
-rw-r--r--client/src/app/shared/shared-video-live/live-stream-information.component.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-video-live/live-stream-information.component.ts b/client/src/app/shared/shared-video-live/live-stream-information.component.ts
index c60f7fe2f..3dd59bb57 100644
--- a/client/src/app/shared/shared-video-live/live-stream-information.component.ts
+++ b/client/src/app/shared/shared-video-live/live-stream-information.component.ts
@@ -49,6 +49,13 @@ export class LiveStreamInformationComponent {
49 return errors[session.error] 49 return errors[session.error]
50 } 50 }
51 51
52 isReplayBeingProcessed (session: LiveVideoSession) {
53 // Running live
54 if (!session.endDate) return false
55
56 return session.saveReplay && !session.endingProcessed
57 }
58
52 private loadLiveInfo (video: Video) { 59 private loadLiveInfo (video: Video) {
53 this.liveVideoService.getVideoLive(video.id) 60 this.liveVideoService.getVideoLive(video.id)
54 .subscribe(live => this.live = live) 61 .subscribe(live => this.live = live)