直播原理
目前各主流瀏覽器支持的視頻格式:
直播協議:
- 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