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