UNPKG

@oplayer/mpegts

Version:

mpegts.js plugin for oplayer

11 lines 552 B
import { type PlayerPlugin, type Source } from '@oplayer/core'; import type Mpegts from 'mpegts.js'; export type Matcher = (video: HTMLVideoElement, source: Source) => boolean; export type Active = (instance: Mpegts.Player, library: typeof Mpegts) => void | ((instance: Mpegts.Player, library: typeof Mpegts) => void); export type MpegtsPluginOptions = { config?: Partial<Mpegts.Config>; matcher?: Matcher; library?: string; }; export default function create(options?: MpegtsPluginOptions): PlayerPlugin; //# sourceMappingURL=index.d.ts.map