The configuration for encrypted video playback through fileId.
◆ TXPlayerAuthParams
◆ appId
The application's appId, which is required.
◆ exper
The preview duration in seconds, which is optional.
◆ fileId
The file ID, which is required.
◆ https
This API is used to set whether to use HTTPS requests, which is no by default.
◆ sign
If hotlink protection is not used, leave this parameter empty.
General hotlink protection signature:
sign = md5(KEY+appId+fileId+t+us)
Preview-enabled hotlink protection signature:
sign = md5(KEY+appId+fileId+t+exper+us)
The hotlink protection parameters (t, us, and exper) used by the player APIs are the same as those in CDN, and the only difference is the calculation method of sign.
For more information, visit https://www.tencentcloud.com/document/product/266/33984?lang=en&pg=.
◆ timeout
The encrypted link timeout timestamp, which is optional and will be converted to a hexadecimal lowercase string. The CDN server will determine whether the link is valid based on the timestamp.
◆ us
The unique request ID, which increases the link uniqueness.