aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/typings/models/video/video-streaming-playlist.ts
blob: 5b631077142b4e3b3b71e9035eb35416d271b788 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import { VideoStreamingPlaylistModel } from '../../../models/video/video-streaming-playlist'
import { PickWith } from '../../utils'
import { MVideoRedundancyFileUrl } from './video-redundancy'
import { MVideo } from '@server/typings/models'

export type MStreamingPlaylist = Omit<VideoStreamingPlaylistModel, 'Video' | 'RedundancyVideos'>

export type MStreamingPlaylistVideo = MStreamingPlaylist &
  PickWith<VideoStreamingPlaylistModel, 'Video', MVideo>

export type MStreamingPlaylistRedundancies = MStreamingPlaylist &
  PickWith<VideoStreamingPlaylistModel, 'RedundancyVideos', MVideoRedundancyFileUrl[]>