一、播放器选型
video.js
video.js是一个比较完整和成熟的播放器框架,包含了整套的UI、弹幕、快捷键、清晰度切换等插件功能,无论用来做点播还是直播都是非常合适的。
hls.js
hls.js是非常小巧的适合于hls类型的直播和点播
flv.js
flv.js是B站开源的flv格式的播放器,适合于flv类型的直播
二、开发
1.全局安装eslint
npm install eslint -g
2.开发目录下初始化一个package.json
npm init
3.配置eslint
eslint --init
配置选项如下:
? How would you like to configure ESLint? Use a popular style guide
? Which style guide do you want to follow? Standard (https://github.com/standard/standard)
? What format do you want your config file to be in? JavaScript
Checking peerDependencies of eslint-config-standard@latest
Local ESLint installation not found.
The config that you've selected requires the following dependencies:
eslint-config-standard@latest eslint@>=5.0.0 eslint-plugin-import@>=2.13.0 eslint-plugin-node@>=7.0.0 eslint-plugin-promise@>=4.0.0 eslint-plugin-standard@>=4.0.0
? Would you like to install them now with npm? Yes
如果安装后出现警告说eslint-config-standard需要一个大于等于某个版本号的eslint,但是没有安装的,需要手动安装:
npm install eslint@>=版本号
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。