UNPKG

@aigamo/nostalgic-diva

Version:

React function components for imperatively controlling embedded players (audio, Niconico, SoundCloud and YouTube) using refs.

8 lines (7 loc) 325 B
import { PlayerType } from '../controllers/PlayerController'; export declare abstract class VideoService<TPlayerType extends PlayerType> { readonly type: TPlayerType; protected constructor(type: TPlayerType); abstract canPlay(url: string): boolean; abstract extractVideoId(url: string): string | undefined; }