]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/videos/video.model.ts
Add lazy description on server
[github/Chocobozzz/PeerTube.git] / shared / models / videos / video.model.ts
1 import { VideoChannel } from './video-channel.model'
2
3 export interface VideoFile {
4 magnetUri: string
5 resolution: number
6 resolutionLabel: string
7 size: number // Bytes
8 torrentUrl: string
9 fileUrl: string
10 }
11
12 export interface Video {
13 id: number
14 uuid: string
15 author: string
16 createdAt: Date | string
17 updatedAt: Date | string
18 categoryLabel: string
19 category: number
20 licenceLabel: string
21 licence: number
22 languageLabel: string
23 language: number
24 description: string
25 duration: number
26 isLocal: boolean
27 name: string
28 podHost: string
29 tags: string[]
30 thumbnailPath: string
31 previewPath: string
32 embedPath: string
33 views: number
34 likes: number
35 dislikes: number
36 nsfw: boolean
37 }
38
39 export interface VideoDetails extends Video {
40 descriptionPath: string,
41 channel: VideoChannel
42 files: VideoFile[]
43 }