I. Summary of the programme
First, through a careful study of the development Program (real-time monitoring, streaming media, data sources for live streaming scenarios--a simple introduction to the server-to-front playback: http://blog.csdn.net/eguid_1/article/details/51725970)
Second, using Nginx as rtmp live Streaming server
Because there is already an Nginx server, (the Nginx Web configuration: http://blog.csdn.net/eguid_1/article/details/51727060) This server runs two test sites, Very suitable for nginx-rtmp server building, so the final use of Nginx to build rtmp live streaming services.
Three, nginx configuration
1, the installation of Nginx-rtmp module
(Note: Because this piece of things more, directly outside the chain I installed when the reference site, or very good)
1.1, Nginx environment can be built using lamp package for integrated environment installation (more convenient, quick installation)
Can see here: https://blog.linuxeye.com/31.html
1.2. NGINX-RTMP module installation and on-demand configuration
Can see here: https://blog.linuxeye.com/383.html
2, the configuration of Nginx
Add an rtmp server on top of the previous Web configuration,
(Note: The RTMP service is a standalone service, do not confuse the HTTP service, the default listener 1935 port, allow all users to play)
The configuration is as follows:
#rtmp servicertmp{#LIVE server { listen 1935; Chunk_size 4000; Application Live { live on; Allow play All;}} }
Add: I have configured this:
The above describes the establishment of RTMP live streaming service 1: Using Nginx to build rtmp server (nginx-rtmp module installation and rtmp live streaming configuration), including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.