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 PlaylistElement {
23 startTimestamp: number
27 export interface Video {
30 createdAt: Date | string
31 updatedAt: Date | string
32 publishedAt: Date | string
33 originallyPublishedAt: Date | string
34 category: VideoConstant<number>
35 licence: VideoConstant<number>
36 language: VideoConstant<string>
37 privacy: VideoConstant<VideoPrivacy>
50 waitTranscoding?: boolean
51 state?: VideoConstant<VideoState>
52 scheduledUpdate?: VideoScheduleUpdate
55 blacklistedReason?: string
57 account: AccountSummary
58 channel: VideoChannelSummary
64 playlistElement?: PlaylistElement
67 export interface VideoDetails extends Video {
68 descriptionPath: string
74 commentsEnabled: boolean
75 downloadEnabled: boolean
77 // Not optional in details (unlike in Video)
78 waitTranscoding: boolean
79 state: VideoConstant<VideoState>
83 streamingPlaylists: VideoStreamingPlaylist[]