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 PlaylistElement {
22 startTimestamp: number
26 export interface Video {
29 createdAt: Date | string
30 updatedAt: Date | string
31 publishedAt: Date | string
32 originallyPublishedAt: Date | string
33 category: VideoConstant<number>
34 licence: VideoConstant<number>
35 language: VideoConstant<string>
36 privacy: VideoConstant<VideoPrivacy>
49 waitTranscoding?: boolean
50 state?: VideoConstant<VideoState>
51 scheduledUpdate?: VideoScheduleUpdate
54 blacklistedReason?: string
56 account: AccountSummary
57 channel: VideoChannelSummary
63 playlistElement?: PlaylistElement
66 export interface VideoDetails extends Video {
67 descriptionPath: string
73 commentsEnabled: boolean
74 downloadEnabled: boolean
76 // Not optional in details (unlike in Video)
77 waitTranscoding: boolean
78 state: VideoConstant<VideoState>
82 streamingPlaylists: VideoStreamingPlaylist[]