In some special scenarios, the authentication operation must be disabled. This article introduces how to splice the encoding streaming URL and the corresponding ingest URL when the authentication function is disabled.
- This article introduces how to get the spliced URLs manually. You can also get the ingest URL and the streaming URL in the console. For more information, see Configure edge ingestion.
- If you want to create multiple live activities , you can also splice the ingest URL and the streaming URL in bulk. For more information , see Create multiple live activities.
- If you don't configure encoding service for your live activities, for more information about the splicing rules of ingest URL and streaming URL, see Ingest URL and streaming URL (Original).
- In this article, the ingest URL and the streaming URL in the example are for your reference only. You can follow the splicing rules to get your own ingest URL and streaming URL by using your ingest domain, streaming domain, Application Name, Stream Name and the authentication string obtained by authentication.
Prerequisites
- Add a domain name
You must first created an ingest domain and a streaming domain that have completed ICP filing. For more information, see Add a domain name.
- Configure CNAME
After adding a domain, you must configure the CNAME for it to take effect. For more information about how to configure CNAME, see Configure CNAME.
- Associate domain names
After creating domain names, you must associate the ingest domain and the streaming domain before you perform stream ingestion and live streaming operations. For more information, see Associate domain names.
How do I get encoding ingest URL?
- Generation rules of ingest URL
ApsaraVideo Live service supports ingest URL in RTMP format only.
The ingest URL format is
RTMP://Ingest Domain nName/AppName/StreamName
- Examples
For example, the Ingest Domain Name is
push.aliyunlive.com
, Application Name is app, Stream Name is stream, and the ingest URL isRTMP://push.aliyunlive.com/app/stream
How do I get encoding streaming URL?
- Configure encoding templates.
- Configure default encoding
- Log on to the ApsaraVideo Live console.
- Click Domains.
- Select the Streaming Domain, and click Stream Settings.
- In Encoding Settings, select Default, and click Add.
- Enter encoding settings parameters. You can select the corresponding ID based on your configuration.
Narrowband HD™
Note For more information, see Default encoding.
- Configure custom encoding
- Log on to the ApsaraVideo Live console.
- Click Domains.
- Select the Streaming Domain, and click Stream Settings.
- In Encoding settings, select Custom, and click Add.
- Enter the encoding setting parameters. You can select the corresponding ID based on your configurations.
Narrowband HD™
Note For more information about custom encoding, see Custom encoding.
- Configure default encoding
- Get ID.
- Get the ID in the ApsaraVideo Live console.
You can obtain the corresponding template ID by following the previous steps.
- Get the ID by using API.
You can call the
DescribeLiveStreamTranscodeInfo
interface, and the system returns the ID. For more information, see DescribeLiveStreamTranscodeInfo.In addition, users can customize template based on added fields. For more information about getting custom ID, see AddCustomLiveStreamTranscode.
- Get the ID in the ApsaraVideo Live console.
- Splicing rules of encoding URL.
- Streaming URL supports RMTP, FLV, and HLS formats. For encoding URLs in different formats, you must add
_templateid
followingStreamName
.- RTMP format:
:rtmp://Streaming Domain Name/AppName/StreamName{_templateid}?
- FLV format:
http://Streaming Domain Name/AppName/StreamName{_templateid}.flv?
- HLS format:
http://Streaming Domain Name/AppName/StreamName{_templateid}.m3u8?
- RTMP format:
- Examples
For example, the Streaming Domain Name is
play.aliyunlive.com
, the Application Name is app, the Stream Name is stream, and the authentication key is 456, then the streaming URL is:- RTMP-based streaming URL
rtmp://play.aliyunlive.com/app/stream_sd
- FLV-based streaming URL
http://play.aliyunlive.com/app/stream_sd.flv?
- HLS-based streaming URL
http://play.aliyunlive.com/app/stream_sd.m3u8
Note M3u8 encoding URL is already supported. If you have more requirements, Open a ticket. - RTMP-based streaming URL
- Streaming URL supports RMTP, FLV, and HLS formats. For encoding URLs in different formats, you must add