1 import { Account, AccountSummary } from '../actors'
2 import { VideoChannel, VideoChannelSummary } from './channel/video-channel.model'
3 import { VideoFile } from './file'
4 import { VideoConstant } from './video-constant.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>
24 // Deprecated in 5.0 in favour of truncatedDescription
26 truncatedDescription: string
52 account: AccountSummary
53 channel: VideoChannelSummary
61 // Additional attributes dependending on the query
62 waitTranscoding?: boolean
63 state?: VideoConstant<VideoState>
64 scheduledUpdate?: VideoScheduleUpdate
67 blacklistedReason?: string
69 blockedOwner?: boolean
70 blockedServer?: boolean
73 streamingPlaylists?: VideoStreamingPlaylist[]
76 export interface VideoDetails extends Video {
78 descriptionPath: string
84 commentsEnabled: boolean
85 downloadEnabled: boolean
87 // Not optional in details (unlike in parent Video)
88 waitTranscoding: boolean
89 state: VideoConstant<VideoState>
94 streamingPlaylists: VideoStreamingPlaylist[]