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'
8 import { VideoStreamingPlaylist } from './video-streaming-playlist.model'
10 export interface VideoFile {
12 resolution: VideoConstant<VideoResolution>
15 torrentDownloadUrl: string
17 fileDownloadUrl: string
21 export interface VideoChannelAttribute {
31 export interface AccountAttribute {
41 export interface Video {
44 createdAt: Date | string
45 updatedAt: Date | string
46 publishedAt: Date | string
47 originallyPublishedAt: Date | string
48 category: VideoConstant<number>
49 licence: VideoConstant<number>
50 language: VideoConstant<string>
51 privacy: VideoConstant<VideoPrivacy>
64 waitTranscoding?: boolean
65 state?: VideoConstant<VideoState>
66 scheduledUpdate?: VideoScheduleUpdate
69 blacklistedReason?: string
71 account: AccountAttribute
72 channel: VideoChannelAttribute
79 export interface VideoDetails extends Video {
80 descriptionPath: string
86 commentsEnabled: boolean
87 downloadEnabled: boolean
89 // Not optional in details (unlike in Video)
90 waitTranscoding: boolean
91 state: VideoConstant<VideoState>
95 streamingPlaylists: VideoStreamingPlaylist[]