videojs-canvas-plugin

1.0.8 • Public • Published

videojs-canvas-plugin

use canvas to render video for video.js

install

npm i videojs-canvas-plugin -S

usage

  import videojs from 'video.js';
  import 'videojs-canvas-plugin';
  import 'video.js/dist/video-js.min.css' // import videojs css
  const player = videojs('videoId',{
    constrols: true,
    poster: 'xxx.jpg',
    //... some other config for videojs
  });
  player.VideoCanvasPlugin(); // use canvas render

Use cases

Video tag is at the top level when video is played by low version browser and app embedded browser on mobile phone, Using canvas to render video can eliminate this side effect.

License

this plugin is released under the MIT license.

Package Sidebar

Install

npm i videojs-canvas-plugin

Weekly Downloads

162

Version

1.0.8

License

MIT

Unpacked Size

20.1 kB

Total Files

8

Last publish

Collaborators

  • chaomingd