TXPlayerAuthParams Class Reference

Inherits from NSObject
Declared in TXPlayerAuthParams.h

Overview

点播fileid鉴权信息

  appId

应用appId。必填

@property int appId

Declared In

TXPlayerAuthParams.h

  fileId

文件id。必填

@property NSString *fileId

Declared In

TXPlayerAuthParams.h

  timeout

加密链接超时时间戳,转换为16进制小写字符串,腾讯云 CDN 服务器会根据该时间判断该链接是否有效。可选

@property NSString *timeout

Declared In

TXPlayerAuthParams.h

  exper

试看时长,单位:秒。可选

@property int exper

Declared In

TXPlayerAuthParams.h

  us

唯一标识请求,增加链接唯一性

@property NSString *us

Declared In

TXPlayerAuthParams.h

  sign

无防盗链不填

@property NSString *sign

Discussion

普通防盗链签名: sign = md5(KEY+appId+fileId+t+us) 带试看的防盗链签名: sign = md5(KEY+appId+fileId+t+exper+us)

播放器API使用的防盗链参数(t, us, exper) 与CDN防盗链参数一致,只是sign计算方式不同 参考防盗链产品文档: https://cloud.tencent.com/document/product/266/11243

Declared In

TXPlayerAuthParams.h

  https

是否用https请求,默认NO

@property BOOL https

Declared In

TXPlayerAuthParams.h