PLVVodSettings Class Reference
Inherits from | NSObject |
---|---|
Declared in | PLVVodSettings.h |
readtoken
readtoken
@property (nonatomic, copy, readonly) NSString *readtoken
Declared In
PLVVodSettings.h
writetoken
writetoken
@property (nonatomic, copy, readonly) NSString *writetoken
Declared In
PLVVodSettings.h
secretkey
secretkey
@property (nonatomic, copy, readonly) NSString *secretkey
Declared In
PLVVodSettings.h
viewerTokenExtraParam
终端用户播放令牌额外参数
@property (nonatomic, copy) NSString *viewerTokenExtraParam
Declared In
PLVVodSettings.h
mutilAccount
是否启用多账户,默认 NO。开启后可播放、下载除了配置的账号以外的其他账号的非加密视频。
@property (nonatomic, assign, getter=isMutilAccount) BOOL mutilAccount
Declared In
PLVVodSettings.h
logLevel
日志输出等级,默认 PLVVodLogLevelWithoutDebug
@property (nonatomic, assign) PLVVodLogLevel logLevel
Declared In
PLVVodSettings.h
enableHttpDNS
是否启动 HTTPDNS,默认 NO。使用该功能,需开启允许 http 请求。
@property (nonatomic, assign) BOOL enableHttpDNS
Declared In
PLVVodSettings.h
settingErrorHandler
错误回调
@property (nonatomic, copy) void ( ^ ) ( NSError *error ) settingErrorHandler
Declared In
PLVVodSettings.h
+ sharedSettings
获取 PLVVodSettings 静态对象
+ (instancetype)sharedSettings
Return Value
PLVVodSettings 静态对象
Declared In
PLVVodSettings.h
+ settingsWithUserid:readtoken:writetoken:secretkey:
通过 userid、readtoken、writetoken、secretkey 配置账号
+ (instancetype)settingsWithUserid:(NSString *)userid readtoken:(NSString *)readtoken writetoken:(NSString *)writetoken secretkey:(NSString *)secretkey
Parameters
userid |
|
---|---|
readtoken |
|
writetoken |
|
secretkey |
Return Value
新的 PLVVodSettings 静态对象
Declared In
PLVVodSettings.h
+ settingsWithConfigString:error:
使用加密串配置账号
+ (instancetype)settingsWithConfigString:(NSString *)configString error:(NSError **)error
Parameters
configString |
加密串 |
---|---|
error |
解密、配置过程的错误 |
Return Value
新的 PLVVodSettings 静态对象
Declared In
PLVVodSettings.h
+ settingsWithConfigString:key:iv:error:
使用加密串、加密秘钥、加密向量配置账号
+ (instancetype)settingsWithConfigString:(NSString *)configString key:(NSString *)key iv:(NSString *)iv error:(NSError **)error
Parameters
configString |
加密串 |
---|---|
key |
加密秘钥 |
iv |
加密向量 |
error |
解密、配置过程的错误 |
Return Value
新的 PLVVodSettings 静态对象
Declared In
PLVVodSettings.h