diff options
author | Chocobozzz <me@florianbigard.com> | 2021-11-18 14:35:08 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-11-18 15:20:57 +0100 |
commit | ad5db1044c8599eaaaa2a578b350777ae996b068 (patch) | |
tree | 3e003cccf021152405d49b21c6c91b703c8ae96c /shared/models/videos/file/video-file.model.ts | |
parent | b46cf4b920984492df598c1b61179acfc7f6f22e (diff) | |
download | PeerTube-ad5db1044c8599eaaaa2a578b350777ae996b068.tar.gz PeerTube-ad5db1044c8599eaaaa2a578b350777ae996b068.tar.zst PeerTube-ad5db1044c8599eaaaa2a578b350777ae996b068.zip |
Add ability to run transcoding jobs
Diffstat (limited to 'shared/models/videos/file/video-file.model.ts')
-rw-r--r-- | shared/models/videos/file/video-file.model.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/shared/models/videos/file/video-file.model.ts b/shared/models/videos/file/video-file.model.ts new file mode 100644 index 000000000..0ea857e7a --- /dev/null +++ b/shared/models/videos/file/video-file.model.ts | |||
@@ -0,0 +1,21 @@ | |||
1 | import { VideoConstant } from '../video-constant.model' | ||
2 | import { VideoFileMetadata } from './video-file-metadata.model' | ||
3 | import { VideoResolution } from './video-resolution.enum' | ||
4 | |||
5 | export interface VideoFile { | ||
6 | resolution: VideoConstant<VideoResolution> | ||
7 | size: number // Bytes | ||
8 | |||
9 | torrentUrl: string | ||
10 | torrentDownloadUrl: string | ||
11 | |||
12 | fileUrl: string | ||
13 | fileDownloadUrl: string | ||
14 | |||
15 | fps: number | ||
16 | |||
17 | metadata?: VideoFileMetadata | ||
18 | metadataUrl?: string | ||
19 | |||
20 | magnetUri: string | null | ||
21 | } | ||