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