UNPKG

@voltra/vue-player

Version:

A Vue port of react-player: components for playing a variety of URLs including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia, DailyMotion

18 lines (14 loc) 538 B
declare module "@voltra/vue-player/players" { import type { Component } from "vue" import type { CanPlayUrl } from "@voltra/vue-player/patterns"; import type { AsyncComponentLoader } from "@vue/runtime-core"; export type CanEnablePIP = (url: string) => boolean; export interface PlayerDecl<Key extends string, Name extends string, C extends Component> { key: Key; name: Name; canPlay: CanPlayUrl; canEnablePIP?: CanEnablePIP; lazyPlayer: AsyncComponentLoader<C>; } export const players: PlayerDecl<any, any, any>[]; }