Create push URL
This SDK is mainly used for URL used in Real-Time Network (RTN) transmission.
Basics
Read the following basics before the SDK integration:
Splicing the push URL
To use CloudHub live streaming services, you should splice the push URL in the following format, which contains 4 paRTN:
You haven’t your own domain names:
rtn://[AppID.streaming.cloudhub.vip]/StreamName?sign=tokentoken
- AppID: The system-generated AppID or the user’s AppID.
- streaming.cloudhub.vip : Default is Second-Domain of CloudHub
- StreamName:Stream name
- token:token
eg: AppID is " D3adAdfvA34432Sh",StreamName is “fifagame2021”,token is “"。 push URL is :
rtn://D3adAdfvA34432Sh.streaming.cloudhub.vip/fifagame2021
You have your own domain names:
rtn://Domain/StreamName+token
eg: Domain is abc.com(Note: your own domain names require legitimate domain name rules),StreamName is “fifagame2021”,push URL is :
rtn://abc.com/fifagame2021
Note:If the user’s incoming url is streaming.cloudhub.vip, the domain name is not defined and the AppID is obtained directly; If the user’s incoming url is not streaming.cloudhub.vip, the domain name is customized and the appID is locked according to the custom domain name
Splicing the pull URL
To use CloudHub live streaming services, you should splice the pull URL in the following format, which contains 3 paRTN:
You haven’t your own domain names:
rtn://[AppID.streaming.cloudhub.vip]/StreamName
- AppID:The system-generated AppID or the user’s AppID.
- streaming.cloudhub.vip: Default is Second-Domain of CloudHub
- StreamName:Stream Name
eg: AppID is “D3adAdfvA34432Sh”,StreamName is “fifagame2021” pull URL is :
rtn://D3adAdfvA34432Sh.streaming.cloudhub.vip/fifagame2021
You have your own domain names:
rtn://domain/StreamName
eg: domain is abc.com(Note: your own domain names require legitimate domain name rules),StreamName is “fifagame2021”, pull URL is : rtn://abc.com/fifagame2021
Note:If the user’s incoming url is streaming.cloudhub.vip, the domain name is not defined and the AppID is obtained directly; If the user’s incoming url is not streaming.cloudhub.vip, the domain name is customized and the appID is locked according to the custom domain name