1 import { VideoResolution, VideoState } from '../../index'
2 import { Account } from '../actors'
3 import { Avatar } from '../avatars/avatar.model'
4 import { VideoChannel } from './video-channel.model'
5 import { VideoPrivacy } from './video-privacy.enum'
6 import { VideoScheduleUpdate } from './video-schedule-update.model'
7 import { VideoConstant } from './video-constant.model'
9 export interface VideoFile {
11 resolution: VideoConstant<VideoResolution>
14 torrentDownloadUrl: string
16 fileDownloadUrl: string
20 export interface Video {
23 createdAt: Date | string
24 updatedAt: Date | string
25 publishedAt: Date | string
26 category: VideoConstant<number>
27 licence: VideoConstant<number>
28 language: VideoConstant<string>
29 privacy: VideoConstant<VideoPrivacy>
42 waitTranscoding?: boolean
43 state?: VideoConstant<VideoState>
44 scheduledUpdate?: VideoScheduleUpdate
47 blacklistedReason?: string
70 export interface VideoDetails extends Video {
71 descriptionPath: string
77 commentsEnabled: boolean
79 // Not optional in details (unlike in Video)
80 waitTranscoding: boolean
81 state: VideoConstant<VideoState>