UNPKG

@ormoshe/js-video-url-parser

Version:

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

17 lines (12 loc) 481 B
import { VideoInfo } from '../urlParser'; export interface SoundCloudUrlParameters { [key: string]: any; start?: number; } export type SoundCloudMediaTypes = 'track' | 'playlist' | 'apitrack' | 'apiplaylist'; export interface SoundCloudVideoInfo extends VideoInfo<SoundCloudUrlParameters, SoundCloudMediaTypes> { provider: 'soundcloud'; list?: string; channel?: string; } export type SoundCloudParseResult = SoundCloudVideoInfo | undefined;