1 import { AccountSummary, VideoChannelSummary, 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 Video {
24 createdAt: Date | string
25 updatedAt: Date | string
26 publishedAt: Date | string
27 originallyPublishedAt: 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>
46 scheduledUpdate?: VideoScheduleUpdate
49 blacklistedReason?: string
51 account: AccountSummary
52 channel: VideoChannelSummary
60 startTimestamp: number
65 export interface VideoDetails extends Video {
66 descriptionPath: string
72 commentsEnabled: boolean
73 downloadEnabled: boolean
75 // Not optional in details (unlike in Video)
76 waitTranscoding: boolean
77 state: VideoConstant<VideoState>
81 streamingPlaylists: VideoStreamingPlaylist[]