@knowbly/videojs-utils
v1.20.7
Published
Knowbly videojs utils
Downloads
10
Readme
VideoJS Utils
Knowbly videojs utils
Development
yarn dev
- Compiles dist folder for development.yarn build
- Compiles and minifies dist folder for production.yarn test:unit
- Run your unit tests.yarn lint
- Lints and fixes files.yarn commit
- Commit your changes using commitizen.
Usage
import videojsUtils, { startVideoJSHOF } from "@knowbly/videojs-utils";
import "@knowbly/videojs-utils/src/css/knowbly-videojs.scss";
// const videojsUtils = require("@knowbly/videojs-utils").default;
// require("@knowbly/videojs-utils/src/css/knowbly-videojs.scss");
console.log(videojsUtils);
// output
// {
// startVideoJS: [Function: startVideoJS],
// destroyVideoJS: [Function: destroyVideoJS],
// pauseMedias: shared._pauseMedias: [Function: pauseMedias],
// resetMedias: [Function: resetMedias],
// vjsEncode: shared._vjsEncode: [Function: vjsEncode],
// videojs: [Function: videojs],
// }
// `startVideoJSHOF` is a Higher-Order-Function to pass extra parameters to startVideoJS