]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/video.ts
Live streaming implementation first step
[github/Chocobozzz/PeerTube.git] / server / models / video / video.ts
index 410d71cb33176e253de82b642d0d8a7b1373ccba..1037730e31ac5f38db301507c7bb2e98d4eff06d 100644 (file)
@@ -549,6 +549,11 @@ export class VideoModel extends Model<VideoModel> {
   @Column
   remote: boolean
 
+  @AllowNull(false)
+  @Default(false)
+  @Column
+  isLive: boolean
+
   @AllowNull(false)
   @Is('VideoUrl', value => throwIfNotValid(value, isActivityPubUrlValid, 'url'))
   @Column(DataType.STRING(CONSTRAINTS_FIELDS.VIDEOS.URL.max))