X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fmodels%2Fvideos%2Fvideo.model.ts;h=f88f381cb8d52af06f6e7d23c07867ca2af30845;hb=bbe0f0645ca958d33a3f409b15166609733b663f;hp=ba1881da34f47656cee15b7526dae004f0dd5533;hpb=03e12d7c4954e1071fdeb7ef362ea5c3965d4075;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts index ba1881da3..f88f381cb 100644 --- a/shared/models/videos/video.model.ts +++ b/shared/models/videos/video.model.ts @@ -1,8 +1,9 @@ -import { VideoResolution } from '../../index' +import { VideoResolution, VideoState } from '../../index' import { Account } from '../actors' import { Avatar } from '../avatars/avatar.model' import { VideoChannel } from './video-channel.model' import { VideoPrivacy } from './video-privacy.enum' +import { VideoScheduleUpdate } from './video-schedule-update.model' export interface VideoConstant { id: T @@ -14,7 +15,9 @@ export interface VideoFile { resolution: VideoConstant size: number // Bytes torrentUrl: string + torrentDownloadUrl: string fileUrl: string + fileDownloadUrl: string } export interface Video { @@ -39,6 +42,10 @@ export interface Video { dislikes: number nsfw: boolean + waitTranscoding?: boolean + state?: VideoConstant + scheduledUpdate?: VideoScheduleUpdate + account: { id: number uuid: string @@ -48,6 +55,16 @@ export interface Video { host: string avatar: Avatar } + + channel: { + id: number + uuid: string + name: string + displayName: string + url: string + host: string + avatar: Avatar + } } export interface VideoDetails extends Video { @@ -58,4 +75,8 @@ export interface VideoDetails extends Video { files: VideoFile[] account: Account commentsEnabled: boolean + + // Not optional in details (unlike in Video) + waitTranscoding: boolean + state: VideoConstant }