import { AllowNull, BelongsTo, Column, CreatedAt, DataType, DefaultScope, ForeignKey, Model, Table, UpdatedAt } from 'sequelize-typescript'
+import { CONFIG } from '@server/initializers/config'
import { WEBSERVER } from '@server/initializers/constants'
import { MVideoLive, MVideoLiveVideo } from '@server/types/models'
-import { AttributesOnly } from '@shared/core-utils'
-import { LiveVideo, VideoState } from '@shared/models'
+import { LiveVideo, LiveVideoLatencyMode, VideoState } from '@shared/models'
+import { AttributesOnly } from '@shared/typescript-utils'
import { VideoModel } from './video'
import { VideoBlacklistModel } from './video-blacklist'
-import { CONFIG } from '@server/initializers/config'
@DefaultScope(() => ({
include: [
@Column
permanentLive: boolean
+ @AllowNull(false)
+ @Column
+ latencyMode: LiveVideoLatencyMode
+
@CreatedAt
createdAt: Date
streamKey: this.streamKey,
permanentLive: this.permanentLive,
- saveReplay: this.saveReplay
+ saveReplay: this.saveReplay,
+ latencyMode: this.latencyMode
}
}
}