@mattebox/player-core
v0.5.0
Published
A headless source handling layer over mattebox.
Readme
The layer of the
Mattebox player without a UI:
source resolution and the handler chain over the
mattebox engine. For a page with its
own UI. No DOM writes, except that the native handler assigns src. No
side effects on import.
npm install @mattebox/player-core matteboximport { createPlayer, matteboxHandler, nativeHandler } from '@mattebox/player-core';
import full from 'mattebox/presets/full';
const player = createPlayer(video, {
handlers: [matteboxHandler({ preset: full }), nativeHandler()],
});
const session = await player.load({ url: 'https://example.com/vod/master.m3u8' });The guide explains the rest.
