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 SpotlightrUrlParameters { [key: string]: any; } export type SpotlightrMediaTypes = 'video'; export interface SpotlightrVideoInfo extends VideoInfo<SpotlightrUrlParameters, SpotlightrMediaTypes> { provider: 'spotlightr'; channel: string; } export type SpotlightrParseResult = SpotlightrVideoInfo | undefined;