txSecret field in a push or playback URL. It can prevent attackers from forging your push URLs or using your playback URLs for profit without authorization.


txTimetxTime, which is the validity period of the URL. For example, if the current time is 2025-11-28 20:19:50, and you want your push URL to expire in three hours, txTime should be 2025-11-28 23:19:50.txTime should be 1694669601 (decimal) or 65029b21 (hexadecimal).txTime + plus the validity period of the authentication key. Changing the authentication validity period does not affect the URL generation, but it can extend the authentication validity time of the address.txSecrettxSecret is generated using MD5(KEY + StreamName + txTime). MD5 is a one-way hashing algorithm(Currently, the SHA256 encryption algorithm has also been added.). KEY is the encryption key configured in step 1. StreamName is the stream ID. We recommend you set it to a random number or the user ID. In the example below, StreamName is set to test, and txTime is the hexadecimal string calculated in step 2.
Example:Suppose `KEY` is `e12c46f2612d5106e2034781ab261ca3`.txSecret = MD5(e12c46f2612d5106e2034781ab261ca3test5C271099) = f85a2ab363fe4deaffef9754d79da6fe

txTime, the signature txSecret (which only Tencent Cloud can decrypt), the stream ID StreamName, and the push domain (suppose it’s livepush.tcloud.com), we can generate a hotlink protection push URL:rtmp://livepush.tcloud.com/live/test?txSecret=f85a2ab363fe4deaffef9754d79da6fe&txTime=5C271099
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback