]>
Commit | Line | Data |
---|---|---|
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' | |
5 | import { VideoPrivacy } from './video-privacy.enum' | |
6 | import { VideoScheduleUpdate } from './video-schedule-update.model' | |
7 | import { VideoState } from './video-state.enum' | |
8 | import { VideoStreamingPlaylist } from './video-streaming-playlist.model' | |
9 | ||
10 | export interface Video { | |
11 | id: number | |
12 | uuid: string | |
13 | createdAt: Date | string | |
14 | updatedAt: Date | string | |
15 | publishedAt: Date | string | |
16 | originallyPublishedAt: Date | string | |
17 | category: VideoConstant<number> | |
18 | licence: VideoConstant<number> | |
19 | language: VideoConstant<string> | |
20 | privacy: VideoConstant<VideoPrivacy> | |
21 | description: string | |
22 | duration: number | |
23 | isLocal: boolean | |
24 | name: string | |
25 | ||
26 | thumbnailPath: string | |
27 | thumbnailUrl?: string | |
28 | ||
29 | previewPath: string | |
30 | previewUrl?: string | |
31 | ||
32 | embedPath: string | |
33 | embedUrl?: string | |
34 | ||
35 | // When using the search index | |
36 | url?: string | |
37 | ||
38 | views: number | |
39 | likes: number | |
40 | dislikes: number | |
41 | nsfw: boolean | |
42 | ||
43 | waitTranscoding?: boolean | |
44 | state?: VideoConstant<VideoState> | |
45 | scheduledUpdate?: VideoScheduleUpdate | |
46 | ||
47 | blacklisted?: boolean | |
48 | blacklistedReason?: string | |
49 | ||
50 | account: AccountSummary | |
51 | channel: VideoChannelSummary | |
52 | ||
53 | userHistory?: { | |
54 | currentTime: number | |
55 | } | |
56 | ||
57 | pluginData?: any | |
58 | } | |
59 | ||
60 | export interface VideoDetails extends Video { | |
61 | descriptionPath: string | |
62 | support: string | |
63 | channel: VideoChannel | |
64 | account: Account | |
65 | tags: string[] | |
66 | files: VideoFile[] | |
67 | commentsEnabled: boolean | |
68 | downloadEnabled: boolean | |
69 | ||
70 | // Not optional in details (unlike in Video) | |
71 | waitTranscoding: boolean | |
72 | state: VideoConstant<VideoState> | |
73 | ||
74 | trackerUrls: string[] | |
75 | ||
76 | streamingPlaylists: VideoStreamingPlaylist[] | |
77 | } |