All Products
Search
Document Center

ApsaraVideo Live:Basic live streaming

Last Updated:Nov 15, 2024

ApsaraVideo Live provides comprehensive features for you to ingest and play live streams. This topic describes the procedure of ingesting and playing a live stream.

Basic live streaming process

image
  1. The streamer uses a video capture device to collect the content of a live stream and uses Push SDK to ingest the stream to Alibaba Cloud points of presence (POPs).

  2. ApsaraVideo Live uses edge ingest to ingest the stream to a specific live center of ApsaraVideo Live. The ingested stream is accelerated by POPs, which ensures the stability of the upstream transmission.

  3. ApsaraVideo Live ingests the steam from the live center to POPs.

  4. The viewers use ApsaraVideo Player SDK to watch the ingested stream.

Procedure

操作流程

No.

Step

Implementation method

Action

API operation

References

1

Make preparations

Console

Use the ApsaraVideo Live console.

  1. Create an Alibaba Cloud account

  2. What is Alibaba Cloud Domains?

  3. Activate ApsaraVideo Live and purchase resource plans

N/A

N/A

2

Add domain names

  • Console

  • API

  1. Add an accelerated domain name

  2. Verify the ownership of a domain name

  3. Add a CNAME record

AddLiveDomain

Domain names

3

Associate the domain names

  • Console

  • API

Associate domain names

4

Configure access control policies

  • Console

  • API

BatchSetLiveDomainConfigs

5

Generate URLs

Console

Live URL generator

N/A

Generate ingest and streaming URLs

6

Ingest the stream

Stream ingest tool

  1. Download and install Open Broadcaster Software (OBS).

  2. Specify the ingest URL and stream name.

N/A

Live stream ingest

7

Play the stream

Player

  1. Download and install VLC media player.

  2. Specify the streaming URL.

N/A

Live stream playback

Supported protocols

The Real-Time Messaging Protocol (RTMP), Secure Reliable Transport (SRT), and Alibaba Real-Time Communication (ARTC) protocols are supported for stream ingest. The RTMP, Flash Video (FLV), HTTP Live Streaming (HLS), and ARTC protocols are supported for streaming. The ARTC protocol is used for Real-Time Streaming (RTS).

Differences exist among the RTMP, FLV, HLS, and ARTC (used for RTS) protocols.