1
0
Fork 0
peertube/shared/models/videos/video.model.ts

47 lines
932 B
TypeScript
Raw Normal View History

2017-10-24 13:41:09 -04:00
import { VideoChannel } from './video-channel.model'
2017-10-31 06:52:52 -04:00
import { VideoPrivacy } from './video-privacy.enum'
2017-10-24 13:41:09 -04:00
export interface VideoFile {
magnetUri: string
resolution: number
resolutionLabel: string
size: number // Bytes
torrentUrl: string
fileUrl: string
}
2017-06-10 16:15:25 -04:00
export interface Video {
id: number
uuid: string
2017-11-09 11:51:58 -05:00
account: string
createdAt: Date | string
updatedAt: Date | string
2017-06-11 05:02:35 -04:00
categoryLabel: string
category: number
licenceLabel: string
licence: number
languageLabel: string
language: number
description: string
duration: number
isLocal: boolean
name: string
podHost: string
tags: string[]
thumbnailPath: string
2017-07-12 05:56:02 -04:00
previewPath: string
2017-10-16 04:05:49 -04:00
embedPath: string
2017-06-11 05:02:35 -04:00
views: number
likes: number
dislikes: number
nsfw: boolean
2017-10-24 13:41:09 -04:00
}
export interface VideoDetails extends Video {
2017-10-31 06:52:52 -04:00
privacy: VideoPrivacy
privacyLabel: string
descriptionPath: string
2017-10-24 13:41:09 -04:00
channel: VideoChannel
files: VideoFile[]
2017-06-10 16:15:25 -04:00
}