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 {
15 createdAt: Date | string
16 updatedAt: Date | string
17 publishedAt: Date | string
18 originallyPublishedAt: Date | string
19 category: VideoConstant<number>
20 licence: VideoConstant<number>
21 language: VideoConstant<string>
22 privacy: VideoConstant<VideoPrivacy>
46 account: AccountSummary
47 channel: VideoChannelSummary
55 // Additional attributes dependending on the query
56 waitTranscoding?: boolean
57 state?: VideoConstant<VideoState>
58 scheduledUpdate?: VideoScheduleUpdate
61 blacklistedReason?: string
63 blockedOwner?: boolean
64 blockedServer?: boolean
67 export interface VideoDetails extends Video {
68 descriptionPath: string
74 commentsEnabled: boolean
75 downloadEnabled: boolean
77 // Not optional in details (unlike in parent Video)
78 waitTranscoding: boolean
79 state: VideoConstant<VideoState>
83 streamingPlaylists: VideoStreamingPlaylist[]