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>
35 // When using the search index
43 waitTranscoding?: boolean
44 state?: VideoConstant<VideoState>
45 scheduledUpdate?: VideoScheduleUpdate
48 blacklistedReason?: string
50 account: AccountSummary
51 channel: VideoChannelSummary
58 export interface VideoDetails extends Video {
59 descriptionPath: string
65 commentsEnabled: boolean
66 downloadEnabled: boolean
68 // Not optional in details (unlike in Video)
69 waitTranscoding: boolean
70 state: VideoConstant<VideoState>
74 streamingPlaylists: VideoStreamingPlaylist[]