Windows Next minute configuration Ngnix implement HLS m3u8 on demand

Source: Internet
Author: User

1. Download nginx-1.5.10 for Windows 2. Modify the configuration file nginx-1.5.10\conf\nginx.conf to add the following line to the previous row of the Last "}": Location/hls {# Serve HLS fragments types {application/ Vnd.apple.mpegurl m3u8; VIDEO/MP2T ts; } root/temp; Add_header Cache-control No-cache; Also, create a new subdirectory: Nginx-1.5.10\html\hls, and copy the generated m3u8 and sliced TS files or directories into the HLS directory 3. Modify the configuration file Nginx-1.5.10\conf\mime.types, add the following three lines: Application/zip zip; Add 2 lines after this line: Application/x-mpegurl m3u8; Application/vnd.apple.mpegurl m3u8; In Video/x-msvideo avi; line, add 1 lines: VIDEO/MP2T ts; 4. Open the task to manage it, kill Ngnix.exe, restart Ngnix.exe 5. Open VLC Player, "open network Stream" menu, input url:http://192.168.1.100/hls/playlist.m3u8 can test play, on your ipad, can also play, simple!!

Windows Next minute configuration Ngnix implement HLS m3u8 on demand

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.