直播原理
目前各主流浏览器支持的视频格式:
直播协议:
- HLS协议
http://live.streamingfast.net...
http://live.streamingfast.net...
http://live.streamingfast.net...
静态列表
全量列表
VOD表示点播,ENDLIST表示结束
- RTMP协议
- HTTP-FLV协议
直播原理总结
video基础认识
准备工作(MAC环境下)
命令行操作
- 安装Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent...)"
- 依赖Homebrew安装Nginx
brew install nginx
- 启动Nginx
brew services start nginx
- 进入nginx目录下
cd /usr/local/Cellar/nginx/1.15.5/html
- 从远程仓库克隆
git clone [email protected]:hughiesong/h5live-demo.git
- 进入仓库文件夹
cd h5live-demo
- 创建index.html
touch index.html
- 用atom打开
open index.html -a atom