1 import { AccountSummary, VideoChannelSummary, VideoResolution, VideoState } from '../../index'
2 import { Account } from '../actors'
3 import { VideoChannel } from './channel/video-channel.model'
4 import { VideoPrivacy } from './video-privacy.enum'
5 import { VideoScheduleUpdate } from './video-schedule-update.model'
6 import { VideoConstant } from './video-constant.model'
7 import { VideoStreamingPlaylist } from './video-streaming-playlist.model'
9 export interface VideoFile {
11 resolution: VideoConstant<VideoResolution>
14 torrentDownloadUrl: string
16 fileDownloadUrl: string
20 export interface Video {
23 createdAt: Date | string
24 updatedAt: Date | string
25 publishedAt: Date | string
26 originallyPublishedAt: Date | string
27 category: VideoConstant<number>
28 licence: VideoConstant<number>
29 language: VideoConstant<string>
30 privacy: VideoConstant<VideoPrivacy>
43 waitTranscoding?: boolean
44 state?: VideoConstant<VideoState>
45 scheduledUpdate?: VideoScheduleUpdate
48 blacklistedReason?: string
50 account: AccountSummary
51 channel: VideoChannelSummary
58 export interface VideoDetails extends Video {
59 descriptionPath: string
65 commentsEnabled: boolean
66 downloadEnabled: boolean
68 // Not optional in details (unlike in Video)
69 waitTranscoding: boolean
70 state: VideoConstant<VideoState>
74 streamingPlaylists: VideoStreamingPlaylist[]