d7a25329f9
In favour of HLS
11 lines
296 B
TypeScript
11 lines
296 B
TypeScript
import { isStreamingPlaylist, MStreamingPlaylistVideo, MVideo } from '@server/typings/models'
|
|
|
|
function extractVideo (videoOrPlaylist: MVideo | MStreamingPlaylistVideo) {
|
|
return isStreamingPlaylist(videoOrPlaylist)
|
|
? videoOrPlaylist.Video
|
|
: videoOrPlaylist
|
|
}
|
|
|
|
export {
|
|
extractVideo
|
|
}
|