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