diff options
author | Chocobozzz <me@florianbigard.com> | 2020-09-17 09:20:52 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-11-09 15:33:04 +0100 |
commit | c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e (patch) | |
tree | 79304b0152b0a38d33b26e65d4acdad0da4032a7 /server/types/models/video/video-live.ts | |
parent | 110d463fece85e87a26aca48a6048ae0017a27b3 (diff) | |
download | PeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.tar.gz PeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.tar.zst PeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.zip |
Live streaming implementation first step
Diffstat (limited to 'server/types/models/video/video-live.ts')
-rw-r--r-- | server/types/models/video/video-live.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/server/types/models/video/video-live.ts b/server/types/models/video/video-live.ts new file mode 100644 index 000000000..346052417 --- /dev/null +++ b/server/types/models/video/video-live.ts | |||
@@ -0,0 +1,15 @@ | |||
1 | import { VideoLiveModel } from '@server/models/video/video-live' | ||
2 | import { PickWith } from '@shared/core-utils' | ||
3 | import { MVideo } from './video' | ||
4 | |||
5 | type Use<K extends keyof VideoLiveModel, M> = PickWith<VideoLiveModel, K, M> | ||
6 | |||
7 | // ############################################################################ | ||
8 | |||
9 | export type MVideoLive = Omit<VideoLiveModel, 'Video'> | ||
10 | |||
11 | // ############################################################################ | ||
12 | |||
13 | export type MVideoLiveVideo = | ||
14 | MVideoLive & | ||
15 | Use<'Video', MVideo> | ||