]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/videos/video.model.ts
Merge branch 'release/3.3.0' into develop
[github/Chocobozzz/PeerTube.git] / shared / models / videos / video.model.ts
CommitLineData
583eb04b
C
1import { Account, AccountSummary } from '../actors'
2import { VideoChannel, VideoChannelSummary } from './channel/video-channel.model'
3import { VideoConstant } from './video-constant.model'
4import { VideoFile } from './video-file.model'
fd45e8f4 5import { VideoPrivacy } from './video-privacy.enum'
bbe0f064 6import { VideoScheduleUpdate } from './video-schedule-update.model'
583eb04b 7import { VideoState } from './video-state.enum'
09209296 8import { VideoStreamingPlaylist } from './video-streaming-playlist.model'
93e1258c 9
69818c93 10export interface Video {
0a6658fd
C
11 id: number
12 uuid: string
d4a8e7a6
C
13 shortUUID: string
14
d592e0a9
C
15 createdAt: Date | string
16 updatedAt: Date | string
2922e048 17 publishedAt: Date | string
c8034165 18 originallyPublishedAt: Date | string
ae5a3dd6
C
19 category: VideoConstant<number>
20 licence: VideoConstant<number>
9d3ef9fe 21 language: VideoConstant<string>
2243730c 22 privacy: VideoConstant<VideoPrivacy>
69f616ab
C
23 description: string
24 duration: number
25 isLocal: boolean
69f616ab 26 name: string
5fb2e288 27
c6c0fa6c
C
28 isLive: boolean
29
69f616ab 30 thumbnailPath: string
5fb2e288
C
31 thumbnailUrl?: string
32
f981dae8 33 previewPath: string
5fb2e288
C
34 previewUrl?: string
35
d8755eed 36 embedPath: string
5fb2e288
C
37 embedUrl?: string
38
39 // When using the search index
40 url?: string
41
69f616ab
C
42 views: number
43 likes: number
44 dislikes: number
45 nsfw: boolean
b64c950a 46
2186386c
C
47 waitTranscoding?: boolean
48 state?: VideoConstant<VideoState>
bbe0f064 49 scheduledUpdate?: VideoScheduleUpdate
2186386c 50
26b7305a
C
51 blacklisted?: boolean
52 blacklistedReason?: string
53
418d092a
C
54 account: AccountSummary
55 channel: VideoChannelSummary
6e46de09
C
56
57 userHistory?: {
58 currentTime: number
59 }
7294aab0
C
60
61 pluginData?: any
72c7248b
C
62}
63
64export interface VideoDetails extends Video {
fd45e8f4 65 descriptionPath: string
2422c46b 66 support: string
72c7248b 67 channel: VideoChannel
5dce26d2 68 account: Account
d48ff09d 69 tags: string[]
93e1258c 70 files: VideoFile[]
47564bbe 71 commentsEnabled: boolean
7f2cfe3a 72 downloadEnabled: boolean
2186386c
C
73
74 // Not optional in details (unlike in Video)
75 waitTranscoding: boolean
76 state: VideoConstant<VideoState>
09209296
C
77
78 trackerUrls: string[]
79
80 streamingPlaylists: VideoStreamingPlaylist[]
69818c93 81}