]>
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 | |
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 C |
41 | views: number |
42 | likes: number | |
43 | dislikes: number | |
44 | nsfw: boolean | |
b64c950a | 45 | |
2186386c C |
46 | waitTranscoding?: boolean |
47 | state?: VideoConstant<VideoState> | |
bbe0f064 | 48 | scheduledUpdate?: VideoScheduleUpdate |
2186386c | 49 | |
26b7305a C |
50 | blacklisted?: boolean |
51 | blacklistedReason?: string | |
52 | ||
418d092a C |
53 | account: AccountSummary |
54 | channel: VideoChannelSummary | |
6e46de09 C |
55 | |
56 | userHistory?: { | |
57 | currentTime: number | |
58 | } | |
7294aab0 C |
59 | |
60 | pluginData?: any | |
72c7248b C |
61 | } |
62 | ||
63 | export interface VideoDetails extends Video { | |
fd45e8f4 | 64 | descriptionPath: string |
2422c46b | 65 | support: string |
72c7248b | 66 | channel: VideoChannel |
5dce26d2 | 67 | account: Account |
d48ff09d | 68 | tags: string[] |
93e1258c | 69 | files: VideoFile[] |
47564bbe | 70 | commentsEnabled: boolean |
7f2cfe3a | 71 | downloadEnabled: boolean |
2186386c C |
72 | |
73 | // Not optional in details (unlike in Video) | |
74 | waitTranscoding: boolean | |
75 | state: VideoConstant<VideoState> | |
09209296 C |
76 | |
77 | trackerUrls: string[] | |
78 | ||
79 | streamingPlaylists: VideoStreamingPlaylist[] | |
69818c93 | 80 | } |