diff options
author | Chocobozzz <me@florianbigard.com> | 2022-07-22 15:22:21 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-07-22 15:22:21 +0200 |
commit | c8fa571f32b10c083fab07f28d2ef55895ef40af (patch) | |
tree | fd50f90cc7643333984ed3b19f6a06f2e9f54feb /client/src/app/shared/shared-video-live | |
parent | a77c5ff3622ab75d0c22241d0ef72053deaa7926 (diff) | |
download | PeerTube-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')
-rw-r--r-- | client/src/app/shared/shared-video-live/live-stream-information.component.html | 1 | ||||
-rw-r--r-- | client/src/app/shared/shared-video-live/live-stream-information.component.ts | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-video-live/live-stream-information.component.html b/client/src/app/shared/shared-video-live/live-stream-information.component.html index 99c7dbd4c..cf30c1ce1 100644 --- a/client/src/app/shared/shared-video-live/live-stream-information.component.html +++ b/client/src/app/shared/shared-video-live/live-stream-information.component.html | |||
@@ -42,6 +42,7 @@ | |||
42 | <span i18n>Started on {{ session.startDate | date:'medium' }}</span> | 42 | <span i18n>Started on {{ session.startDate | date:'medium' }}</span> |
43 | <span i18n *ngIf="session.endDate">Ended on {{ session.endDate | date:'medium' }}</span> | 43 | <span i18n *ngIf="session.endDate">Ended on {{ session.endDate | date:'medium' }}</span> |
44 | <a i18n *ngIf="session.replayVideo" [routerLink]="getVideoUrl(session.replayVideo)" target="_blank">Go to replay</a> | 44 | <a i18n *ngIf="session.replayVideo" [routerLink]="getVideoUrl(session.replayVideo)" target="_blank">Go to replay</a> |
45 | <span i18n *ngIf="isReplayBeingProcessed(session)">Replay is being processed...</span> | ||
45 | </div> | 46 | </div> |
46 | </div> | 47 | </div> |
47 | </div> | 48 | </div> |
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) |