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'
8 export interface VideoConstant <T> {
13 export interface VideoFile {
15 resolution: VideoConstant<VideoResolution>
18 torrentDownloadUrl: string
20 fileDownloadUrl: string
24 export interface Video {
27 createdAt: Date | string
28 updatedAt: Date | string
29 publishedAt: Date | string
30 category: VideoConstant<number>
31 licence: VideoConstant<number>
32 language: VideoConstant<string>
33 privacy: VideoConstant<VideoPrivacy>
46 waitTranscoding?: boolean
47 state?: VideoConstant<VideoState>
48 scheduledUpdate?: VideoScheduleUpdate
71 export interface VideoDetails extends Video {
72 descriptionPath: string
78 commentsEnabled: boolean
80 // Not optional in details (unlike in Video)
81 waitTranscoding: boolean
82 state: VideoConstant<VideoState>