×
Community Blog High-Quality ApsaraVideo Live: Maximize Your Live Streaming with HTTPS Security

High-Quality ApsaraVideo Live: Maximize Your Live Streaming with HTTPS Security

ApsaraVideo Live is a live streaming platform for both audio and video based on leading content hosting and delivery networks and large-scale distributed real-time transcoding technology.

By Jessie Angelica and Sunny Jovita, Solution Architects Alibaba Cloud Indonesia

ApsaraVideo Live is a live streaming platform for both audio and video based on leading content hosting and delivery networks and large-scale distributed real-time transcoding technology. ApsaraVideo Live leverages the technical foundations laid out by Alibaba Cloud over the years, including our global content delivery network and security technologies, to deliver secure and fast live streaming services for global audiences.

Use Case

1) Cultural and Entertainment Interaction: Offers end-to-end interactive live broadcast services for global cultural and entertainment events. For example: User-Generated Content (UGC) Videos and Game Live Broadcast
2) Online Education: Help With RTS, teachers and students can interact in real-time, creating a more conducive learning environment. ApsaraVideo Live also provides powerful post-editing features such as cloud recording, time shifting, and transcoding, which allow teachers to upload course materials that students can access at their convenience. For Example: Corporate training and professional education
3) E-commerce Shopping: during the live video, stars and celebrities do live streaming and interact on-site to exhibit the product information in a bid to influence user decision-making. For Example: Shopping Mall Live Broadcast
4) Financial Live Video: Provides robust security services for financial cloud products and services tailored to enterprises. For example: the introduction and training of financial products in the Banking and insurance industry
5) Professional Live Streaming: Offers a professional broadcast platform for news, sports, and variety shows based on the concept of “professional + convenient + user friendly”. For Example: Sporting events and news media

Benefit

1) End-to-end coverage: It provides solutions for stream ingest, video processing, content delivery, and video playback.
2) Global presence: The live centres are deployed in 9 countries and regions across China, Europe, and Southeast Asia, providing reliable live streaming services within and outside China.
3) High security and stability: It provides live streaming services that are compliant with National Radio and Television Administration (NRTA) regulations.
4) Smooth experience: CDN routes streams through POPs nearest to the viewers, minimizing stream latency and ensuring the quality of live interactions.
5) Ultra-low latency: it makes use of RTS technologies to greatly reduce the latency of concurrent live streams to within a few milliseconds.

STEP 1 Create Ingest and Streaming Domain

1) Log on to the ApsaraVideo Live console.
2) In the left-side navigation pane, click Domains. The Domain Management page appears.
3) Click Add Domain and configure the domain name based on your business requirements.
a) Choose Ingest Domain in Domain Type, Global in Acceleration Region, Fill in with your domain (example : ingest.jessiedemo.xyz), Indonesia (Jakarta) in Live Center, Check the agree button.
b) Choose Streaming Domain in Domain Type, Global in Acceleration Region, Fill in with your domain (example : streaming.jessiedemo.xyz), Indonesia (Jakarta) in Live Center, Check the agree button
4) Obtain the CNAME that is assigned to the domain name for which you want to add a CNAME record and Copy the CNAME of ingest domain and streaming domain

image

STEP 2 Inject the CNAME in DNS Record

1) Log on to the Alibaba Cloud DNS console.
2) In the left-side navigation pane, click Domain Name Resolution. The Domain Name Resolution page appears.
3) Find the domain name for which you want to add a CNAME record and click DNS Settings in the Actions column.
4) Click Add DNS Record and configure the parameters that are described in the following table.
a) Choose CNAME in Record Type, ingest.jessiedemo.xyz in Hostname, the CNAME that you’ve copied in the previous section in Record Value. Click OK
b) Choose CNAME in Record Type, streaming.jessiedemo.xyz in Hostname, the CNAME that you’ve copied in the previous section in Record Value. Click OK

image_2

STEP 3 Purchase the SSL Cerificate (Optional)

1) If you want to purchase a certificate, log on to the SSL Certificate Management Service console in SSL Certificates to apply for a free certificate or purchase an advanced certificate.
a) Click the purchase in the notification for certificate value-added service. Click Buy Now

image_3

b) Click Contact and fill in the contact name, email address, and mobile number

image_4

2) Click Apply for Certificate
3) Fill the domain name, for example : *.jessiedemo.xyz and select the check box in quick issue
4) Wait around 7 hours until the status is issued.

image_5

STEP 4 Activate the HTTPS in your Website

1) Log on to the ApsaraVideo Live console.
2) In the left-side navigation pane, choose Tools > Certificates.
3) On the Certificates page, click Add Certificate.
4) In the Add Certificate panel, configure the parameters : Certificate Type, Certificate Name, Certificate (PublicKey), and Private Key, and click Next.
a) Configure the ingest domain name that matches the certificate, click OK
b) Configure the streaming domain name that matches the certificate, click OK
5) On the Certificates page, view the certificate information. You can view information such as Accelerated Domain Name, Certificate Name, and Certificate Status is valid.

IMAGE_6

6) In the left-side navigation pane, click Domains to go to the Domain Management page.
7) Find the streaming domain that you want to configure HTTPS Secure CDN and click Domain Settings
8) Choose Stream Management > HTTP Header Settings
9) Click Add in HTTP Header Settings
10) Select a Access-Control-Allow-Origin parameter from the Header drop-down list, enter the domain, for example : https://demo.jessiedemo.xyz/ in the Value field, and then click OK.

IMAGE_7

11) Click HTTPS Settings, and then click Switch under HTTPS Certificate

IMAGE_8

12) Select a certificate.
a) Self-owned certificate: You must specify the certificate name and upload the certificate content and private key. The certificate is saved in the Alibaba Cloud Security Certificates console. You can view the certificate in the My Certificates section.
b) Alibaba Cloud Certificate: supports certificates purchased in Alibaba Cloud Security Certificates Service. You can directly select the name of the certificate to adapt to the accelerated domain name.

13) In Force Redirect, set the redirect type : HTTP > HTTPS redirect: User requests are forcibly redirected to HTTPS requests. Lastly, verify that the certificate takes effect

IMAGE_9

STEP 5 Create the Ingest and Streaming URL

1) In the left-side navigation pane, choose URL Generators > Live URL Generator.
2) Configure the parameters described in the following table.
a) Click your streaming domain and ingest domain, fill the application name and stream name. Click the Generate URLs. Copy the URL RTMP in OBS and URL M3U8 in file index.html to be injected later.

IMAGE_10

STEP 6 Ingest a stream over Real-Time Messaging Protocol (RTMP) by using OBS

1) Launch the OBS
2) In the menu bar, choose File > Settings.
3) Click Stream, Setting
4) On the Settings page, click Stream. On the page that appears, enter the generated ingest URL in the RTMP format in the Server field.
5) Click Apply and OK

IMAGE_11

6) Add the scene and choose Video Capture Device in the Source
7) Click Start Streaming
IMAGE_12

STEP 7 Hosting Website using NGINX and Inject the URL for live streaming in Website

1) Create Simple Applicaton Server as Virtual Machine

IMAGE_13

2) Hosting your website using nginx.
IMAGE_14

IMAGE_15

IMAGE_16

IMAGE_17

IMAGE_18

IMAGE_19

IMAGE_20

IMAGE_21

IMAGE_22

IMAGE_23

IMAGE_24

IMAGE_25

3) Verify that the streaming video takes effect and appear in your website

IMAGE_26

0 1 0
Share on

Alibaba Cloud Indonesia

99 posts | 15 followers

You may also like

Comments