Live Streaming
Last updated
Last updated
Address
VNG CorporationThe service supports broadcasting live content such as events, TV shows, and sports to many users over the internet platform with high quality and stability.
Data Distribution Mechanism
vCDN uses PULL and PUSH methods to input signal and output signal, ensuring the best, most stable transmission line, with the most access points for live service.
Chunk size time option : Helps optimize caching and content delivery.
Multi-Origin Support : Allows integration of multiple sources when creating a CDN.
HTTPS connection to Origin : Ensures security when transmitting data.
Secure output link :
Customize caching to suit each type of content.
CNAME support for CDN.
Live Entrypoint Signal Management : Easily monitor and manage input signals.
Adaptive Bitrate (ABR) Support :
Encode source video at different bit rates.
Popular video codecs: H.264/AVC and H.265/HEVC .
Popular audio codec: AAC .
Meet a wide range of online user bandwidth.
First, you need to initialize a Live Entrypoint following these instructions:
Access vCDN Portal at https://vcdn.vngcloud.vn
Select Live Entrypoint , then select Create new.
Continue to enter/select:
Live Entrypoint Configuration:
Live Entrypoint name: The name of the Live Entrypoint, used to identify the input signal on the system.
Description: A brief description of the Live Entrypoint, for easy management and identification.
Publish and Media Configuration:
Live app: Name of the live streaming application. This is an important identifier to distinguish signal streams in the system.
TimeShift: Allows viewers to rewind live content in a short period of time (current VCDN default only supports 30 minutes). You can choose to turn it on/off depending on your needs.
Security Configuration:
Publish IP(s): List of IP addresses allowed to send RTMP signals to the system. You need to enter the IP of the device or server sending the signal. If you do not enter the correct IP, the system will block the signal. If you do not enter the IP, you are required to enter the Username and Password according to the instructions below.
User Name, Password: Authentication information to protect RTMP signal. You need to enter username and password to secure incoming RTMP signal.
Note: You must enter at least one of the two Publish IP(s) or Username/Password fields , or you can enter both.
Entrypoint Zone:
Primary Zone: The main service provider that receives the RTMP signal (eg: Viettel, VNPT, VNG HCM). You need to choose the ISP that matches your signal. In which RTMP URL : The path to push the RTMP signal to the main ISP.
Backup Zone: Backup provider if signal from Primary Zone fails. You need to select backup ISP from the list (or select "Not Use" if no backup is needed).
Media Config:
Media Type: Live stream content format, vCDN currently only supports HLS format .
Segment Size: The time to package each RTMP signal segment into an HLS or DASH file. You need to choose an appropriate value (2s, 4s, 6s, 10s). Small values help reduce latency but increase system load.
Select Submit .
Next, you need to initiate a Live Streaming following the instructions below:
Access vCDN Portal at https://vcdn.vngcloud.vn
Select Live Streaming , then select Create new.
Continue to enter/select:
CDN Info:
CDN Name : The name of the CDN Live Streaming, used for identification when managing CDN streams.
Type : Select the type of CDN service for Live Streaming. You can choose:
CDN Packaging : The system will handle the "packaging" of content directly on the CDN. Choose CDN Packaging if you want the system to optimize processing time and reduce load from the source.
Origin Packaging : Package the content at the source (Origin), then the CDN only delivers it.
CDN Configuration
Live Entrypoint : Select the Live Entrypoint created from step 1 as the data source.
Channel: Identifier of the live channel on the system.
Security:
HTTPS (HTTP/2) : Enable or disable HTTPS security for the CDN stream. You can create a new Certificate by selecting Add new .
Minimum TLS Version : The lowest version of the TLS protocol allowed. We support TLS 1.0, TLS 1.1, TLS 1.2, TLS 1.3 protocols. Please choose to use higher versions (TLS 1.2 or 1.3) to ensure security.
Token Configuration :
Token Type : Select the token type used to authenticate viewers. You can choose token type Akamai, SBD or VNG.
Access Filter:
IP Address CIDR : Limit access based on IP address by selecting Allow / Block and entering the corresponding IP address or CIDR.
HTTP Referer : Limit access from specific websites by selecting Allow/ Block and entering the corresponding domain.
Geo Location: Limit access by country/region by selecting Allow/ Block and entering the corresponding Geo Location code. You can refer to the corresponding country code value at https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes .
CORS Configuration
Simple : When selecting Simple, you only need to specify specific domains that are allowed access through Allow Origin.
Advance : When selecting Advance, in addition to specifying a specific domain, you need to configure more details about Allow Header, Allow Method, Expose Header, Allow Credentials allowed.
Caching
Caching Level : Determines the CDN cache level.
Page Rules: This feature helps customers optimize conditions and options to help the website demonstrate many different purposes. To create Page rules, please select Create Page Rule , a popup will appear, now you need to select:
URL pattern: need to apply pagerule, support declaration type “*” represents a string of characters. For example: /trang_landing_cu.html. After entering URL pattern, select Add new rule . Each Rule when satisfying the condition of the requested URI will be able to optionally execute one of the following actions:
Response Header Override
Resolve Origin Override
Origin Base Directory
Deny Access
Select Save changes to save the changes.
Select Submit to complete creating the Live Stream.
Once you have created your Live Entrypoint and Live Streaming, you can now configure and access live via:
For links using HTTPS:
For links using HTTP: