]>
Commit | Line | Data |
---|---|---|
418d092a | 1 | import { AccountSummary, VideoChannelSummary, VideoResolution, 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' |
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 |
c8034165 | 26 | originallyPublishedAt: Date | string |
ae5a3dd6 C |
27 | category: VideoConstant<number> |
28 | licence: VideoConstant<number> | |
9d3ef9fe | 29 | language: VideoConstant<string> |
2243730c | 30 | privacy: VideoConstant<VideoPrivacy> |
69f616ab C |
31 | description: string |
32 | duration: number | |
33 | isLocal: boolean | |
69f616ab | 34 | name: string |
69f616ab | 35 | thumbnailPath: string |
f981dae8 | 36 | previewPath: string |
d8755eed | 37 | embedPath: string |
69f616ab C |
38 | views: number |
39 | likes: number | |
40 | dislikes: number | |
41 | nsfw: boolean | |
b64c950a | 42 | |
2186386c C |
43 | waitTranscoding?: boolean |
44 | state?: VideoConstant<VideoState> | |
bbe0f064 | 45 | scheduledUpdate?: VideoScheduleUpdate |
2186386c | 46 | |
26b7305a C |
47 | blacklisted?: boolean |
48 | blacklistedReason?: string | |
49 | ||
418d092a C |
50 | account: AccountSummary |
51 | channel: VideoChannelSummary | |
6e46de09 C |
52 | |
53 | userHistory?: { | |
54 | currentTime: number | |
55 | } | |
72c7248b C |
56 | } |
57 | ||
58 | export interface VideoDetails extends Video { | |
fd45e8f4 | 59 | descriptionPath: string |
2422c46b | 60 | support: string |
72c7248b | 61 | channel: VideoChannel |
5dce26d2 | 62 | account: Account |
d48ff09d | 63 | tags: string[] |
93e1258c | 64 | files: VideoFile[] |
47564bbe | 65 | commentsEnabled: boolean |
7f2cfe3a | 66 | downloadEnabled: boolean |
2186386c C |
67 | |
68 | // Not optional in details (unlike in Video) | |
69 | waitTranscoding: boolean | |
70 | state: VideoConstant<VideoState> | |
09209296 C |
71 | |
72 | trackerUrls: string[] | |
73 | ||
74 | streamingPlaylists: VideoStreamingPlaylist[] | |
69818c93 | 75 | } |