UNPKG

@ormoshe/js-video-url-parser

Version:

A parser to extract provider, video id, starttime and others from YouTube, Vimeo, ... urls

15 lines (10 loc) 397 B
import { VideoInfo } from '../urlParser'; export interface StreamableUrlParameters { [key: string]: any; } export type StreamableMediaTypes = 'video'; export interface StreamableVideoInfo extends VideoInfo<StreamableUrlParameters, StreamableMediaTypes> { provider: 'streamable'; channel: string; } export type StreamableParseResult = StreamableVideoInfo | undefined;