Design and implementation of the Cloud Guide--Livego rtmp server based on Golang

Source: Internet
Author: User
This is a created article in which the information may have evolved or changed.

First, what is the Cloud Guide broadcasting station

Provides live streaming of rtmp or http-flv on multiple live streams during live stream switching. For example, when there are multiple live rtmp sources, the source dynamic, real-time selection, will be live out of it, display to the audience.

Second, what is Livego

Livego is a RTMP server developed based on Golang. Here a simple cloud guide is developed on the Livego framework.

Three, the realization of the Cloud Guide table function List

  • The rtmp stream server actively pulls the multi-channel stream;
  • Pull multi-channel live stream refers to: rtmp stream, http-flv stream;
  • Through the HTTP election, the multiple streams pulled to the dynamic selection, the selected stream is pushed to the upstream;

IV. basic framework for cloud-guided broadcasting


Such as:

* HTTP Control module
The control client, by sending an HTTP command, triggers:
Multiple pull-stream operations: pull multiple different streams
Local pull-Flow module, select one of the modules after pulling, push to the far end;
* Pull-Flow module
Responsible for pulling the stream and pushing the stream to the local rtmp://127.0.0.1/xxx/xxxx
* Multi-Stream Selection module
According to the HTTP protocol command, select a local stream rtmp://127.0.0.1/xxx/xxx for local pull and push to the specified rtmp address upstream
V. Source address and Wiki address
Livego Source: Https://github.com/runner365/livego
Livego Cloud Guide wiki:https://github.com/runner365/livego/wiki/-Multi-stream cut-off broadcast

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.