]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/types/models/video/video-live-session.ts
Don't fail remote transcoding on retry
[github/Chocobozzz/PeerTube.git] / server / types / models / video / video-live-session.ts
CommitLineData
26e3e98f
C
1import { VideoLiveSessionModel } from '@server/models/video/video-live-session'
2import { PickWith } from '@shared/typescript-utils'
3import { MVideo } from './video'
05a60d85 4import { MLiveReplaySetting } from './video-live-replay-setting'
26e3e98f
C
5
6type Use<K extends keyof VideoLiveSessionModel, M> = PickWith<VideoLiveSessionModel, K, M>
7
8// ############################################################################
9
05a60d85 10export type MVideoLiveSession = Omit<VideoLiveSessionModel, 'Video' | 'VideoLive' | 'ReplaySetting'>
26e3e98f
C
11
12// ############################################################################
13
14export type MVideoLiveSessionReplay =
15 MVideoLiveSession &
05a60d85
W
16 Use<'ReplayVideo', MVideo> &
17 Use<'ReplaySetting', MLiveReplaySetting>