⚠️

gdplayer-hls.js
TypeScript icon, indicating that this package has built-in type declarations

0.9.21 • Public • Published

Introduction

A extension plugin which integrated hls.js based on gdplayer

How to use

install

$ npm istall gdplayer@alpha
$ npm istall gdplayer-hls.js@alpha

Usage

html

<div id="vs"></div>

js

import Player from 'gdplayer'
import 'gdplayer/dist/gdplayer.min.css'
import HlsJsPlugin from 'gdplayer-hls.js'

const player = new Player({
  id: 'vs',
  url: '../gdplayer-demo.hls',
  plugins: [HlsJsPlugin],
  hlsJsPlugin: {} // config for plugin HlsJsPlugin
  // If use CDN loading,you can Get the plugin through window.HlsJsPlugin
})

Readme

Keywords