1 import { VideoResolution, VideoState } from '../../index'
2 import { Account } from '../actors'
3 import { Avatar } from '../avatars/avatar.model'
4 import { VideoChannel } from './channel/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 VideoChannelAttribute {
30 export interface AccountAttribute {
40 export interface Video {
43 createdAt: Date | string
44 updatedAt: Date | string
45 publishedAt: Date | string
46 category: VideoConstant<number>
47 licence: VideoConstant<number>
48 language: VideoConstant<string>
49 privacy: VideoConstant<VideoPrivacy>
62 waitTranscoding?: boolean
63 state?: VideoConstant<VideoState>
64 scheduledUpdate?: VideoScheduleUpdate
67 blacklistedReason?: string
69 account: AccountAttribute
70 channel: VideoChannelAttribute
73 export interface VideoDetails extends Video {
74 descriptionPath: string
80 commentsEnabled: boolean
82 // Not optional in details (unlike in Video)
83 waitTranscoding: boolean
84 state: VideoConstant<VideoState>