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
23 export interface Video {
26 createdAt: Date | string
27 updatedAt: Date | string
28 publishedAt: Date | string
29 category: VideoConstant<number>
30 licence: VideoConstant<number>
31 language: VideoConstant<string>
32 privacy: VideoConstant<VideoPrivacy>
45 waitTranscoding?: boolean
46 state?: VideoConstant<VideoState>
47 scheduledUpdate?: VideoScheduleUpdate
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>