1 import { AccountSummary, VideoChannelSummary, VideoState } from '../../index'
2 import { Account } from '../actors'
3 import { VideoChannel } from './channel/video-channel.model'
4 import { VideoPrivacy } from './video-privacy.enum'
5 import { VideoScheduleUpdate } from './video-schedule-update.model'
6 import { VideoConstant } from './video-constant.model'
7 import { VideoStreamingPlaylist } from './video-streaming-playlist.model'
8 import { VideoFile } from './video-file.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>
33 waitTranscoding?: boolean
34 state?: VideoConstant<VideoState>
35 scheduledUpdate?: VideoScheduleUpdate
38 blacklistedReason?: string
40 account: AccountSummary
41 channel: VideoChannelSummary
48 export interface VideoDetails extends Video {
49 descriptionPath: string
55 commentsEnabled: boolean
56 downloadEnabled: boolean
58 // Not optional in details (unlike in Video)
59 waitTranscoding: boolean
60 state: VideoConstant<VideoState>
64 streamingPlaylists: VideoStreamingPlaylist[]