windows下一分鐘配置ngnix實現HLS m3u8點播

來源:互聯網
上載者:User

標籤:

1. 下載nginx-1.5.10 for windows

2. 建立子目錄:nginx-1.5.10\html\hls,把產生的m3u8和切片好的ts檔案或目錄拷貝到hls目錄下

3. 修改設定檔nginx-1.5.10\conf\mime.types,增加以下三行:
在application/zip zip;這一行後面增加2行:
application/x-mpegURL m3u8;
application/vnd.apple.mpegurl m3u8;

在video/x-msvideo avi;行後,增加1行:
video/MP2T ts;

4. 開啟任務管理其,殺掉ngnix.exe,重啟ngnix.exe

5. 開啟vlc播放器, 【開啟網路串流】菜單,輸入url:http://192.168.1.100/hls/playlist.m3u8
即可測試播放了,在你的ipad上,也可以播放啦,簡單吧!!

後記:
修改conf\ngnix.conf設定目錄別名:
location /media/ {
alias d:/RtspServer/bin/media;
}
這樣就可以http://192.168.1.100/media/xxx.m3u8 訪問目錄d:/RtspServer/bin/media中的檔案

windows下一分鐘配置ngnix實現HLS m3u8點播

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.