AliyunVideoSDKInfo
@interface AliyunVideoSDKInfo : NSObject
sdk基础信息与设置类
-
获取版本号
Declaration
Objective-C
+ (NSString *)version;
Return Value
版本号
-
获取module
kAliyunModulePro kAliyunModuleStandard kAliyunModuleBasic
Declaration
Objective-C
+ (NSString *)module;
Return Value
module类型
-
获取版本号code
Declaration
Objective-C
+ (int)versionCode;
Return Value
版本号code
-
获取alivc commit id 版本build相关,开发者无需关心
Declaration
Objective-C
+ (NSString *)alivcCommitId;
Return Value
alivc commit id
-
获取mediacore commit id 版本build相关,开发者无需关心
Declaration
Objective-C
+ (NSString *)mediaCoreCommitId;
Return Value
mediacore commit id
-
获取video sdk commit id 版本build相关,开发者无需关心
Declaration
Objective-C
+ (NSString *)videoSDKCommitId;
Return Value
video sdk commit id
-
获取build id 版本build相关,开发者无需关心
Declaration
Objective-C
+ (NSString *)videoSDKBuildId;
Return Value
build id
-
打印版本信息
Declaration
Objective-C
+ (void)printSDKInfo;
-
注册SDK
请在工程的Info.plist中增加AlivcLicenseKey和AlivcLicenseFile字段
- 在AlivcLicenseKey中填入您的LicenseKey
- 在AlivcLicenseFile中填入您的LicenseFile路径(相对于mainBundle);例如您的LicenseFile为"license.crt"放到mainBundle下,就填入license.crt
LicenseKey和LicenseFile的获取请参考文档:https://help.aliyun.com/document_detail/415400.html
Declaration
Objective-C
+ (NSError *)registerSDK;
-
获取日志等级
Declaration
Objective-C
+ (AlivcLogLevel)logLevel;
Return Value
AlivcLogLevel.
-
设置日志等级
Declaration
Objective-C
+ (void)setLogLevel:(AlivcLogLevel)level;
Parameters
level
日志等级 默认值AlivcLogError,只有在报错时才有日志 调试阶段可以设置为AlivcLogVerbose或AlivcLogDebug
-
日志存储路径
Declaration
Objective-C
+ (NSString *)logPath;
-
设置SDKBundle的路径
Declaration
Objective-C
+ (void)setSDKBundlePath:(NSString *)bundlePath;
-
SDKBundle的路径
Declaration
Objective-C
+ (NSString *)sdkBundlePath;
-
设置用户id 设置业务层用户id,用于线上用户反馈问题的日志排查
Declaration
Objective-C
+ (void)setUserId:(NSString *)userId;
Parameters
userId
用户id
-
获取用户id
Declaration
Objective-C
+ (NSString *)userId;
Return Value
用户id
-
设备信息上传
Declaration
Objective-C
+ (void)setDeviceInfoUpload:(BOOL)conanUpload;
Parameters
conanUpload
是否上传
-
获取设备信息上传
Declaration
Objective-C
+ (BOOL)deviceInfoUpload;
Return Value
结果
-
Deprecated
please use setLogLevel:
设置debug日志等级
Declaration
Objective-C
+ (void)setDebugLogLevel:(AlivcDebugLogLevel)level;
Parameters
level
debug日志等级 用于设置debug日志上传等级,默认值AlivcDebugLogNormal