1 import { Account, AccountSummary } from '../actors'
2 import { VideoChannel, VideoChannelSummary } from './channel/video-channel.model'
3 import { VideoConstant } from './video-constant.model'
4 import { VideoFile } from './video-file.model'
5 import { VideoPrivacy } from './video-privacy.enum'
6 import { VideoScheduleUpdate } from './video-schedule-update.model'
7 import { VideoState } from './video-state.enum'
8 import { VideoStreamingPlaylist } from './video-streaming-playlist.model'
10 export interface Video {
13 createdAt: Date | string
14 updatedAt: Date | string
15 publishedAt: Date | string
16 originallyPublishedAt: Date | string
17 category: VideoConstant<number>
18 licence: VideoConstant<number>
19 language: VideoConstant<string>
20 privacy: VideoConstant<VideoPrivacy>
37 // When using the search index
45 waitTranscoding?: boolean
46 state?: VideoConstant<VideoState>
47 scheduledUpdate?: VideoScheduleUpdate
50 blacklistedReason?: string
52 account: AccountSummary
53 channel: VideoChannelSummary
62 export interface VideoDetails extends Video {
63 descriptionPath: string
69 commentsEnabled: boolean
70 downloadEnabled: boolean
72 // Not optional in details (unlike in Video)
73 waitTranscoding: boolean
74 state: VideoConstant<VideoState>
78 streamingPlaylists: VideoStreamingPlaylist[]