]>
Commit | Line | Data |
---|---|---|
2186386c | 1 | import { VideoResolution, VideoState } from '../../index' |
50d6de9c | 2 | import { Account } from '../actors' |
b64c950a | 3 | import { Avatar } from '../avatars/avatar.model' |
72c7248b | 4 | import { VideoChannel } from './video-channel.model' |
fd45e8f4 | 5 | import { VideoPrivacy } from './video-privacy.enum' |
bbe0f064 | 6 | import { VideoScheduleUpdate } from './video-schedule-update.model' |
40e87e9e | 7 | import { VideoConstant } from './video-constant.model' |
ae5a3dd6 | 8 | |
93e1258c C |
9 | export interface VideoFile { |
10 | magnetUri: string | |
09700934 | 11 | resolution: VideoConstant<VideoResolution> |
93e1258c | 12 | size: number // Bytes |
a96aed15 | 13 | torrentUrl: string |
02756fbd | 14 | torrentDownloadUrl: string |
a96aed15 | 15 | fileUrl: string |
02756fbd | 16 | fileDownloadUrl: string |
3a6f351b | 17 | fps: number |
93e1258c C |
18 | } |
19 | ||
69818c93 | 20 | export interface Video { |
0a6658fd C |
21 | id: number |
22 | uuid: string | |
d592e0a9 C |
23 | createdAt: Date | string |
24 | updatedAt: Date | string | |
2922e048 | 25 | publishedAt: Date | string |
ae5a3dd6 C |
26 | category: VideoConstant<number> |
27 | licence: VideoConstant<number> | |
9d3ef9fe | 28 | language: VideoConstant<string> |
2243730c | 29 | privacy: VideoConstant<VideoPrivacy> |
69f616ab C |
30 | description: string |
31 | duration: number | |
32 | isLocal: boolean | |
69f616ab | 33 | name: string |
69f616ab | 34 | thumbnailPath: string |
f981dae8 | 35 | previewPath: string |
d8755eed | 36 | embedPath: string |
69f616ab C |
37 | views: number |
38 | likes: number | |
39 | dislikes: number | |
40 | nsfw: boolean | |
b64c950a | 41 | |
2186386c C |
42 | waitTranscoding?: boolean |
43 | state?: VideoConstant<VideoState> | |
bbe0f064 | 44 | scheduledUpdate?: VideoScheduleUpdate |
2186386c | 45 | |
b64c950a | 46 | account: { |
03e12d7c C |
47 | id: number |
48 | uuid: string | |
b64c950a C |
49 | name: string |
50 | displayName: string | |
51 | url: string | |
52 | host: string | |
53 | avatar: Avatar | |
54 | } | |
0f320037 C |
55 | |
56 | channel: { | |
57 | id: number | |
58 | uuid: string | |
59 | name: string | |
60 | displayName: string | |
61 | url: string | |
62 | host: string | |
63 | avatar: Avatar | |
64 | } | |
72c7248b C |
65 | } |
66 | ||
67 | export interface VideoDetails extends Video { | |
fd45e8f4 | 68 | descriptionPath: string |
2422c46b | 69 | support: string |
72c7248b | 70 | channel: VideoChannel |
d48ff09d | 71 | tags: string[] |
93e1258c | 72 | files: VideoFile[] |
b1fa3eba | 73 | account: Account |
47564bbe | 74 | commentsEnabled: boolean |
2186386c C |
75 | |
76 | // Not optional in details (unlike in Video) | |
77 | waitTranscoding: boolean | |
78 | state: VideoConstant<VideoState> | |
69818c93 | 79 | } |