LiteAVSDK
Tencent Cloud TRTC SDK, is a high availability components serving tens of thousands of enterprise customers, which is committed to helping you to minimize your research and development costs.
TXPlayerAuthParams

Data Structures

class  TXPlayerAuthParams
 

Detailed Description

The configuration for encrypted video playback through fileId.


Data Structure Documentation

◆ TXPlayerAuthParams

class TXPlayerAuthParams
+ Inheritance diagram for TXPlayerAuthParams:

Properties

int appId
 
NSString * fileId
 
NSString * timeout
 
int exper
 
NSString * us
 
NSString * sign
 
BOOL https
 

Property Documentation

◆ appId

- (int) appId
readwriteatomic

The application's appId, which is required.

◆ exper

- (int) exper
readwriteatomic

The preview duration in seconds, which is optional.

◆ fileId

- (NSString*) fileId
readwriteatomic

The file ID, which is required.

◆ https

- (BOOL) https
readwriteatomic

This API is used to set whether to use HTTPS requests, which is no by default.

◆ sign

- (NSString*) sign
readwriteatomic

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

- (NSString*) timeout
readwriteatomic

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

- (NSString*) us
readwriteatomic

The unique request ID, which increases the link uniqueness.