@videojs/hlsjs-video
v10.0.0-rc.2
Published
hls.js playback adapter for Video.js
Readme
@videojs/hlsjs-video
The Video.js playback adapter for hls.js. It owns the supported hls.js runtime,
browser playback implementation, and compatibility tests. @videojs/mux-video builds on it.
Installation
Install the adapter with the framework façade your player uses:
pnpm add @videojs/html @videojs/hlsjs-video
# or
pnpm add @videojs/react @videojs/hlsjs-videoUsage
Use the HTML or React façade for normal player integration:
import '@videojs/html/media/hlsjs-video';import { HlsJsVideo } from '@videojs/react/media/hlsjs-video';Low-level consumers can import the Media and supported hls.js class directly:
import { Hls, HlsJsAdapter } from '@videojs/hlsjs-video';