Windows Next minute configuration Ngnix implement HLS m3u8 on demand

Source: Internet
Author: User

1. Download nginx-1.5.10 for Windows

2. Create a new subdirectory: Nginx-1.5.10\html\hls, 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:
In Application/zip zip, add 2 lines after this line:
Application/x-mpegurl m3u8;
Application/vnd.apple.mpegurl m3u8;

After Video/x-msvideo avi; line, add 1 lines:
VIDEO/MP2T ts;

4. Open task to manage it, kill Ngnix.exe, restart Ngnix.exe

5. Open VLC Player, "open network Stream" menu, enter url:http://192.168.1.100/hls/playlist.m3u8
You can test the playback, on your ipad, it is also playable, simple!!

Postscript:
To modify the conf\ngnix.conf settings directory alias:
location/media/{
Alias D:/rtspserver/bin/media;
}
This allows http://192.168.1.100/media/xxx.m3u8 access to the files in the directory D:/rtspserver/bin/media

Windows Next minute configuration Ngnix implement HLS m3u8 on demand

Related Article

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.