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>
39 // When using the search index
47 waitTranscoding?: boolean
48 state?: VideoConstant<VideoState>
49 scheduledUpdate?: VideoScheduleUpdate
52 blacklistedReason?: string
54 account: AccountSummary
55 channel: VideoChannelSummary
64 export interface VideoDetails extends Video {
65 descriptionPath: string
71 commentsEnabled: boolean
72 downloadEnabled: boolean
74 // Not optional in details (unlike in Video)
75 waitTranscoding: boolean
76 state: VideoConstant<VideoState>
80 streamingPlaylists: VideoStreamingPlaylist[]