]>
Commit | Line | Data |
---|---|---|
583eb04b C |
1 | import { Account, AccountSummary } from '../actors' |
2 | import { VideoChannel, VideoChannelSummary } from './channel/video-channel.model' | |
ad5db104 | 3 | import { VideoFile } from './file' |
583eb04b | 4 | import { VideoConstant } from './video-constant.model' |
fd45e8f4 | 5 | import { VideoPrivacy } from './video-privacy.enum' |
bbe0f064 | 6 | import { VideoScheduleUpdate } from './video-schedule-update.model' |
583eb04b | 7 | import { VideoState } from './video-state.enum' |
09209296 | 8 | import { VideoStreamingPlaylist } from './video-streaming-playlist.model' |
93e1258c | 9 | |
69818c93 | 10 | export interface Video { |
0a6658fd C |
11 | id: number |
12 | uuid: string | |
d4a8e7a6 C |
13 | shortUUID: string |
14 | ||
d592e0a9 C |
15 | createdAt: Date | string |
16 | updatedAt: Date | string | |
2922e048 | 17 | publishedAt: Date | string |
c8034165 | 18 | originallyPublishedAt: Date | string |
ae5a3dd6 C |
19 | category: VideoConstant<number> |
20 | licence: VideoConstant<number> | |
9d3ef9fe | 21 | language: VideoConstant<string> |
2243730c | 22 | privacy: VideoConstant<VideoPrivacy> |
69f616ab C |
23 | description: string |
24 | duration: number | |
25 | isLocal: boolean | |
69f616ab | 26 | name: string |
5fb2e288 | 27 | |
c6c0fa6c C |
28 | isLive: boolean |
29 | ||
69f616ab | 30 | thumbnailPath: string |
5fb2e288 C |
31 | thumbnailUrl?: string |
32 | ||
f981dae8 | 33 | previewPath: string |
5fb2e288 C |
34 | previewUrl?: string |
35 | ||
d8755eed | 36 | embedPath: string |
5fb2e288 C |
37 | embedUrl?: string |
38 | ||
ab4001aa | 39 | url: string |
5fb2e288 | 40 | |
69f616ab | 41 | views: number |
b2111066 | 42 | viewers: number |
51353d9a | 43 | |
69f616ab C |
44 | likes: number |
45 | dislikes: number | |
46 | nsfw: boolean | |
b64c950a | 47 | |
418d092a C |
48 | account: AccountSummary |
49 | channel: VideoChannelSummary | |
6e46de09 C |
50 | |
51 | userHistory?: { | |
52 | currentTime: number | |
53 | } | |
7294aab0 C |
54 | |
55 | pluginData?: any | |
2760b454 C |
56 | |
57 | // Additional attributes dependending on the query | |
58 | waitTranscoding?: boolean | |
59 | state?: VideoConstant<VideoState> | |
60 | scheduledUpdate?: VideoScheduleUpdate | |
61 | ||
62 | blacklisted?: boolean | |
63 | blacklistedReason?: string | |
64 | ||
65 | blockedOwner?: boolean | |
66 | blockedServer?: boolean | |
3c10840f C |
67 | |
68 | files?: VideoFile[] | |
69 | streamingPlaylists?: VideoStreamingPlaylist[] | |
72c7248b C |
70 | } |
71 | ||
72 | export interface VideoDetails extends Video { | |
fd45e8f4 | 73 | descriptionPath: string |
2422c46b | 74 | support: string |
72c7248b | 75 | channel: VideoChannel |
5dce26d2 | 76 | account: Account |
d48ff09d | 77 | tags: string[] |
47564bbe | 78 | commentsEnabled: boolean |
7f2cfe3a | 79 | downloadEnabled: boolean |
2186386c | 80 | |
2760b454 | 81 | // Not optional in details (unlike in parent Video) |
2186386c C |
82 | waitTranscoding: boolean |
83 | state: VideoConstant<VideoState> | |
09209296 C |
84 | |
85 | trackerUrls: string[] | |
86 | ||
3c10840f | 87 | files: VideoFile[] |
09209296 | 88 | streamingPlaylists: VideoStreamingPlaylist[] |
69818c93 | 89 | } |