aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-live-session.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 /server/models/video/video-live-session.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 'server/models/video/video-live-session.ts')
-rw-r--r--server/models/video/video-live-session.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/models/video/video-live-session.ts b/server/models/video/video-live-session.ts
index 758906a42..ed386052b 100644
--- a/server/models/video/video-live-session.ts
+++ b/server/models/video/video-live-session.ts
@@ -53,6 +53,14 @@ export class VideoLiveSessionModel extends Model<Partial<AttributesOnly<VideoLiv
53 @Column 53 @Column
54 error: LiveVideoError 54 error: LiveVideoError
55 55
56 @AllowNull(false)
57 @Column
58 saveReplay: boolean
59
60 @AllowNull(false)
61 @Column
62 endingProcessed: boolean
63
56 @ForeignKey(() => VideoModel) 64 @ForeignKey(() => VideoModel)
57 @Column 65 @Column
58 replayVideoId: number 66 replayVideoId: number
@@ -144,6 +152,8 @@ export class VideoLiveSessionModel extends Model<Partial<AttributesOnly<VideoLiv
144 endDate: this.endDate 152 endDate: this.endDate
145 ? this.endDate.toISOString() 153 ? this.endDate.toISOString()
146 : null, 154 : null,
155 endingProcessed: this.endingProcessed,
156 saveReplay: this.saveReplay,
147 replayVideo, 157 replayVideo,
148 error: this.error 158 error: this.error
149 } 159 }