Absolutely original---about live streaming (push-pull-server build)

Source: Internet
Author: User

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)

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.