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

43 lines
806 B
TypeScript
Raw Normal View History

2017-10-24 13:41:09 -04: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 16:15:25 -04:00
export interface Video {
id: number
uuid: string
2017-06-11 05:02:35 -04:00
author: 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 {
channel: VideoChannel
files: VideoFile[]
2017-06-10 16:15:25 -04:00
}