Videogular is an HTML5 video player for Angular 2.0. Videogular is a wrapper over the HTML5 video tag, so you can just add whatever you want. This provides a very powerful, but simple to use solution, for everybody.
You can see a demo here: https://videogular.github.io/videogular2-showroom/#/
Documentation: https://videogular.github.io/videogular2
To get up and running quickly, check out the getting started guide.
Run start
to compile the project, execute tests and check coverage:
npm start
Run build
to compile the project:
npm run build
Run test
to test the project:
npm test
Run coverage
to check the coverage report:
npm run coverage
To start the example app run the following commands and open http://localhost:8080:
cd examples
npm install
npm run build
npm start
Videogular wants to thank you to this companies for support this project:
Videogular is a project created by Raúl Jiménez and released under MIT license.
This project would not be possible without our team members and an amazing community,
解决办法:安装两个包 npm install rxjs@^6.0.0 --saven npm install rxjs-compat@^6.0.0 --save
// 安装依赖 npm i videogular2 --save npm i hls.js --save // 在index.html中引入 <script src="assets/hls.min.js"></script> <link href="assets/fonts/videogular.css" rel="stylesheet"> // 在app.modules.ts中引入 impo
这种是videogular2 跟ionic版本兼容问题 换个videogular2版本试试 把原来版本去掉 自己手动安装 npm install videogular2@6.1.0 --save 亲测有效!
本文为原创文章,转载请标明出处 目录 使用 videogular2 安装 增加图标、字体支持 导入 module 举个例子 遇到的问题 iOS 端自动进入全屏播放 Android 端 autoplay 不起作用 更多 1. 使用 videogular2 安装 终端运行: npm install videogular2 --save npm install @types/core-js --save