PeerTube/shared/models/videos/video.model.ts

47 lines
935 B
TypeScript
Raw Normal View History

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