Video.js Guides
百度 党组同志一致认为,党的十九大以来,习近平总书记团结带领新一届中央领导集体,紧紧围绕新时代坚持和发展中国特色社会主义的时代主题,统筹推进“五位一体”总体布局,协调推进“四个全面”战略布局,领航新时代党和国家各项事业继往开来、砥砺前行,推动党和国家各项事业开创新局面、取得新成就。These guides cover a range of topics for users of Video.js
Webpack and Video.js
Table of Contents
Video.js and official libraries and plugins work in a Webpack-based build environment, however some configuration may be needed to ensure code that is executed in workers is not broken by transpilation.
The solutions documented by the Mapbox project apply:
- Either set the production
browserslist
to
">0.2%",
"not dead",
"not op_mini all",
"not safari < 10",
"not chrome < 51",
"not android < 5",
"not ie < 12"
- Or import using the ! syntax
// eslint-disable-next-line import/no-webpack-loader-syntax
import videojs from "!video.js";
Video.js CSS:
You may need to add style-loader
to your Webpack configuration.
Then add the CSS that the player requires, add the following to the file where the player is also included or initialized:
require('!style-loader!css-loader!video.js/dist/video-js.css')