- export type ToFormatedJSON = (this: VideoInstance) => FormatedVideo
-
- export type ToAddRemoteJSON = (this: VideoInstance) => Promise<FormatedAddRemoteVideo>
- export type ToUpdateRemoteJSON = (this: VideoInstance) => FormatedUpdateRemoteVideo
-
- export type TranscodeVideofile = (this: VideoInstance) => Promise<void>
+ export type ToFormattedJSON = (this: VideoInstance) => FormattedVideo
+
+ export type GetOriginalFile = (this: VideoInstance) => VideoFileInstance
+ export type GenerateMagnetUri = (this: VideoInstance, videoFile: VideoFileInstance) => string
+ export type GetTorrentFileName = (this: VideoInstance, videoFile: VideoFileInstance) => string
+ export type GetVideoFilename = (this: VideoInstance, videoFile: VideoFileInstance) => string
+ export type CreatePreview = (this: VideoInstance, videoFile: VideoFileInstance) => Promise<string>
+ export type CreateThumbnail = (this: VideoInstance, videoFile: VideoFileInstance) => Promise<string>
+ export type GetVideoFilePath = (this: VideoInstance, videoFile: VideoFileInstance) => string
+ export type CreateTorrentAndSetInfoHash = (this: VideoInstance, videoFile: VideoFileInstance) => Promise<void>
+
+ export type ToAddRemoteJSON = (this: VideoInstance) => Promise<RemoteVideoCreateData>
+ export type ToUpdateRemoteJSON = (this: VideoInstance) => RemoteVideoUpdateData
+
+ export type OptimizeOriginalVideofile = (this: VideoInstance) => Promise<void>
+ export type TranscodeOriginalVideofile = (this: VideoInstance, resolution: number) => Promise<void>
+ export type GetOriginalFileHeight = (this: VideoInstance) => Promise<number>
+ export type GetEmbedPath = (this: VideoInstance) => string
+ export type GetThumbnailPath = (this: VideoInstance) => string
+ export type GetPreviewPath = (this: VideoInstance) => string