このページは、お客様の言語ではご利用いただけません。Huawei Cloudは、より多くの言語バージョンを追加するために懸命に取り組んでいます。ご協力ありがとうございました。

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Live/ Cloud Live/ Playback/ Assembling a Streaming URL

Assembling a Streaming URL

Updated on 2024-12-06 GMT+08:00

After domain names are configured, you can assemble a streaming URL and play the video through the URL. You can also use the tool to quickly generate a signed URL of the streaming domain name.

Prerequisites

  • The ingest domain name and streaming domain name have been added and associated.
  • You have configured CNAME records at your domain names' DNS provider.
  • 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 livestreams 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

  1. Log in to the Live console.
  2. In the navigation pane, choose Domains.
  3. Click Manage in the Operation column of the desired 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 the original streaming URL is used and referer validation is configured, generate a signed streaming URL for the original one by referring to URL Validation.
    • If the URL of the transcoded stream is used for livestreaming, you need to add _transcoding template ID to the end of StreamName in the original streaming URL to generate a new StreamName, and generate new authentication parameters by referring to URL Validation. Then you can assemble the streaming URL of the transcoded stream.

Original Streaming URL

Assembling rules

  • Cloud Stream Live
    You can play FLV, M3U8, and RTMP streams.
    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
  • LLL
    You can only play WebRTC streams.
    webrtc://Streaming domain name/AppName/StreamName

Parameters in the example:

  • 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: livestream name. Multiple livestreams can be created for each application. You can customize the stream name.

Examples

  • Cloud Stream Live

    If the added streaming domain name is test-play.example.com, AppName is livetest, and StreamName is huawei1, the assembled 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
  • LLL

    If the added streaming domain name is test-play.example.com, AppName is livetest, and StreamName is huawei1, the assembled streaming URL is:

    webrtc://test-play.example.com/livetest/huawei1

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 rules

Add _Transcoding template ID to the end of the StreamName field in the original streaming URL and signed streaming URL.

  • Cloud Stream Live
    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
  • LLL
    webrtc://Streaming domain name/AppName/StreamName_Transcoding template ID

Transcoding template ID: ID of the template used for live transcoding. The ID of a custom transcoding template can be customized. Log in to the Live console and choose Domains in the navigation pane. On the page displayed, click Manage in the Operation column of the desired ingest domain name. Then choose Templates > Transcoding in the navigation pane.

Examples

If the original streaming URL is http://test-play.example.com/livetest/huawei1.flv and transcoding template ID is 110,
  • The transcoded streaming URL is as follows when URL validation is disabled:
    • Cloud Stream Live
      http://test-play.example.com/livetest/huawei1_110.flv
    • LLL
      webrtc://test-play.example.com/livetest/huawei1_110
  • The transcoded streaming URL is as follows when URL validation is enabled:
    • Cloud Stream Live
      http://test-play.example.com/livetest/huawei1_110.flv?auth_info=z6uwSWUceM2%2FZeDpc2LqjhEFhhXpjQ5IQJhrLoIARQ2%2Bn%2BJV4DrzGRqXxWxMLQBU.44393135353831414132454633374139
    • LLL
      webrtc://test-play.example.com/livetest/huawei1_110?auth_info=z6uwSWUceM2%2FZeDpc2LqjhEFhhXpjQ5IQJhrLoIARQ2%2Bn%2BJV4DrzGRqXxWxMLQBU.44393135353831414132454633374139

    For details about how to generate authentication information, see Signed Streaming URL.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback