h5与微信小顺序直播开辟

一、播放器选型

  • 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@>=版本号
    原文作者:HughieSung
    原文地址: https://segmentfault.com/a/1190000017308490
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞