]>
Commit | Line | Data |
---|---|---|
b764380a | 1 | import { AccountSummary, VideoChannelSummary, VideoState } from '../../index' |
50d6de9c | 2 | import { Account } from '../actors' |
59c76ffa | 3 | import { VideoChannel } from './channel/video-channel.model' |
fd45e8f4 | 4 | import { VideoPrivacy } from './video-privacy.enum' |
bbe0f064 | 5 | import { VideoScheduleUpdate } from './video-schedule-update.model' |
40e87e9e | 6 | import { VideoConstant } from './video-constant.model' |
09209296 | 7 | import { VideoStreamingPlaylist } from './video-streaming-playlist.model' |
d7a25329 | 8 | import { VideoFile } from './video-file.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 |
69f616ab | 25 | thumbnailPath: string |
f981dae8 | 26 | previewPath: string |
d8755eed | 27 | embedPath: string |
69f616ab C |
28 | views: number |
29 | likes: number | |
30 | dislikes: number | |
31 | nsfw: boolean | |
b64c950a | 32 | |
2186386c C |
33 | waitTranscoding?: boolean |
34 | state?: VideoConstant<VideoState> | |
bbe0f064 | 35 | scheduledUpdate?: VideoScheduleUpdate |
2186386c | 36 | |
26b7305a C |
37 | blacklisted?: boolean |
38 | blacklistedReason?: string | |
39 | ||
418d092a C |
40 | account: AccountSummary |
41 | channel: VideoChannelSummary | |
6e46de09 C |
42 | |
43 | userHistory?: { | |
44 | currentTime: number | |
45 | } | |
72c7248b C |
46 | } |
47 | ||
48 | export interface VideoDetails extends Video { | |
fd45e8f4 | 49 | descriptionPath: string |
2422c46b | 50 | support: string |
72c7248b | 51 | channel: VideoChannel |
5dce26d2 | 52 | account: Account |
d48ff09d | 53 | tags: string[] |
93e1258c | 54 | files: VideoFile[] |
47564bbe | 55 | commentsEnabled: boolean |
7f2cfe3a | 56 | downloadEnabled: boolean |
2186386c C |
57 | |
58 | // Not optional in details (unlike in Video) | |
59 | waitTranscoding: boolean | |
60 | state: VideoConstant<VideoState> | |
09209296 C |
61 | |
62 | trackerUrls: string[] | |
63 | ||
64 | streamingPlaylists: VideoStreamingPlaylist[] | |
69818c93 | 65 | } |