Assembling a Streaming URL
After domain names are configured, you can assemble a streaming URL and stream the video through the URL. You can also use the tool of generating signed URLs to quickly generate a signed streaming URL.
Prerequisites
- The ingest domain name and streaming domain name have been added and associated.
- CNMAE records have been added to your domains' DNS records.
- To secure live resources, Live provides URL validation to encrypt and sign the streaming URL. If necessary, configure URL validation and stream the video through the signed URL. For details about how to configure URL validation, see URL Validation.
- You can transcode live streams into video streams with different resolutions and bitrates to meet a broad range of requirements. If necessary, configure a transcoding template, and then use the streaming URL to play live video.
Procedure
- Log in to the Live console.
- In the navigation pane, choose Domains.
- Click Settings in the Operation column of the row containing the target streaming domain name. On the displayed page, you can view streaming information.Figure 1 Viewing the streaming URL
- You need to customize StreamName to generate a streaming URL. For details, see Original Streaming URL.
- If URL validation is configured, you can add a signed string to the original streaming URL to generate a new streaming URL. For details, see Signed Streaming URL.
- If you want to stream your content in different specifications, you can add _transcoding template ID after StreamName in the original or signed streaming URL. For details, see Transcoded Streaming URL.
Original Streaming URL
Assembling Rule
RTMP format: rtmp://Streaming domain name/AppName/StreamName FLV format: http://Streaming domain name/AppName/StreamName.flv M3U8 format: http://Streaming domain name/AppName/StreamName.m3u8
- Streaming domain name is the one you added on the Live console.
- AppName: application name. The default value is live. You can customize the application name. Only letters, digits, underscores (_), and hyphens (-) are allowed.
- StreamName: live stream name. Multiple live streams can be created for each application. You can customize the stream name.
Examples
If the added streaming domain name is test-play.example.com, AppName is livetest, and StreamName is huawei1, then the streaming URL is:
RTMP format: rtmp://test-play.example.com/livetest/huawei1 FLV format: http://test-play.example.com/livetest/huawei1.flv M3U8 format: http://test-play.example.com/livetest/huawei1.m3u8
Signed Streaming URL
If URL validation is enabled, you must generate a signed streaming URL based on obtained authentication information and stream your content through the signed URL. For details, see URL Validation.
Transcoded Streaming URL
If you have configured transcoding, you must assemble a transcoded streaming URL. The URL needs to be set differently when URL validation is enabled or disabled.
Assembling Rule
Add _Transcoding template ID to the end of the StreamName field in the original streaming URL and signed streaming URL.
RTMP format: rtmp://Streaming domain name/AppName/StreamName_Transcoding template ID FLV format: http://Streaming domain name/AppName/StreamName_Transcoding template ID.flv M3U8 format: http://Streaming domain name/AppName/StreamName_Transcoding template ID.m3u8

Examples
- The transcoded streaming URL is as follows when URL validation is disabled:
http://test-play.example.com/livetest/huawei1_110.flv
- The transcoded streaming URL is as follows when URL validation is enabled:
http://test-play.example.com/livetest/huawei1_110.flv?auth_info=z6uwSWUceM2%2FZeDpc2LqjhEFhhXpjQ5IQJhrLoIARQ2%2Bn%2BJV4DrzGRqXxWxMLQBU.44393135353831414132454633374139
For details about how to generate authentication information, see Signed Streaming URL.
