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

44 lines
833 B
TypeScript
Raw Normal View History

2017-10-24 17:41:09 +00:00
import { VideoChannel } from './video-channel.model'
export interface VideoFile {
magnetUri: string
resolution: number
resolutionLabel: string
size: number // Bytes
torrentUrl: string
fileUrl: string
}
2017-06-10 20:15:25 +00:00
export interface Video {
id: number
uuid: string
2017-06-11 09:02:35 +00:00
author: string
createdAt: Date | string
updatedAt: Date | string
2017-06-11 09:02:35 +00: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 09:56:02 +00:00
previewPath: string
2017-10-16 08:05:49 +00:00
embedPath: string
2017-06-11 09:02:35 +00:00
views: number
likes: number
dislikes: number
nsfw: boolean
2017-10-24 17:41:09 +00:00
}
export interface VideoDetails extends Video {
2017-10-30 09:16:27 +00:00
descriptionPath: string,
2017-10-24 17:41:09 +00:00
channel: VideoChannel
files: VideoFile[]
2017-06-10 20:15:25 +00:00
}