1. The company has the wind to do live broadcast, catch good this paragraph has time, oneself research a bit. In fact, the detour is more, and later in the Lahue/push/server building is completed, the idea becomes very clear.
2. First from the server set up, about three kinds of mainstream hls/rtmp/flv, here I use RTMP, about the switch, we need to look at the Ngnix configuration file related parameters document.
I'm using ngnix+rtmp, which is to build the Ngnix server locally, and add the Rtmp module to the Ngnix server. Behind closed doors prone to sudden death , I refer to the Book of Jane, please visit: http://www.jianshu.com/p/5ee84e403ea8
Refer to the above links for a few points of attention:
1): When you are familiar with the command line of Linux, homebrew is really useful.
2):
This step is likely to fail, but try a few more times and it will succeed.
3):
Note The Ngnix version that you installed, to view
4): After you complete the Nginx configuration rtmp, the upper link next to the section can be ignored.
3. Push The stream, push the stream I'm using the Lfliveplayer open source framework, which is extremely simple to use and has a better function
To intercept the most important code:
1): Lflivesession is the core class, can focus on its properties and methods, the use of a simple way.
4. Pull The stream, pull the stream I use Ijkmediaframework, it is simple, and the function is perfect
To intercept the most important code:
1): Ijkffmovieplayercontroller is the core class, easy to use.
5. Procedures
1. Push-to-flow:
2. Pull the current end:
6. Thanks
Thank Jane Book author full of mountain plums on Mac to build live server nginx such a good article
Thanks to Lfliveplayer and the authors of Ijkmediaframework, as well as to the IT code farmers who contributed to the open source community.
7. PostScript
Demo please email sunny_1v@163.com
Absolutely original---about live streaming (push-pull-server build)