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'
7 export interface VideoConstant <T> {
12 export interface VideoFile {
14 resolution: VideoConstant<VideoResolution>
17 torrentDownloadUrl: string
19 fileDownloadUrl: string
22 export interface Video {
25 createdAt: Date | string
26 updatedAt: Date | string
27 publishedAt: Date | string
28 category: VideoConstant<number>
29 licence: VideoConstant<number>
30 language: VideoConstant<string>
31 privacy: VideoConstant<VideoPrivacy>
44 waitTranscoding?: boolean
45 state?: VideoConstant<VideoState>
68 export interface VideoDetails extends Video {
69 descriptionPath: string
75 commentsEnabled: boolean
77 // Not optional in details (unlike in Video)
78 waitTranscoding: boolean
79 state: VideoConstant<VideoState>