Token
Token is generated by a combination of stream_url, timestamp, app_secret
1. Splicing request parameters
stream_url 、timestamp、app_secret to splice to build BodyStr, the splicing rule is “stream_url”+stream_url_value+“timestamp”+timestamp_value+app_secret
Parameter | Description |
---|---|
stream_url | stream_url not included when signing? after Parameter. stream_url format:stream_url |
timestamp | token timestamp, The format is the number of seconds that have elated since 0:00 on January 1, 1970.For example, if you set timestamp to the current timestamp for another 600 seconds, token expires 10 minutes after build |
app_secret | In your enterprise configuration there is secretkey, you can modify this configuration |
eg:
stream_url is rtn://Y25hNWV3MjMxVQ.streaming.cloudhub.vip/live/qgstestcccccc?sign=1234×tamp=1244456688 ; sign is rtn://Y25hNWV3MjMxVQ.streaming.cloudhub.vip/live/qgstestcccccc
app_secret is 123456 (View app_secret from the management system )
2. Splicing string
Splicing key natural ascending sort after stitching in turn。
String is
eg: stream_urlrtn://Y25hNWV3MjMxVQ.streaming.cloudhub.vip/live/qgstestcccccctimestamp1244456688123456
3. sha256 Encryption
- The “2” generated string sha256 is encrypted to generate the signature