




pod 'VHLiveSDK'pod 'VHLiveSDK_Interactive'
+ (void)registerApp:(NSString *)appKey SecretKey:(NSString *)secretKey;
+ (void)registerApp:(NSString *)appKey SecretKey:(NSString *)secretKey host:(NSString*)host;
+ (void)registerApp:(NSString *)appKey SecretKey:(NSString *)secretKey host:(NSString*)host rsaPrivateKey:(NSString *)rsaPrivateKey;| 参数字段 | 描述 |
|---|---|
| RSA_PRIVATE_KEY | 私钥(从控制台 开发者设置获取) |
需要删除复制的这一部分内容
"-----BEGIN PRIVATE KEY-----" +
"-----END PRIVATE KEY-----"| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| appKey | 是 | xxx | vhall 后台注册生成的 APPkey |
| secretKey | 是 | xxx | vhall 后台注册生成的 App Secretkey |
| host | 否 | xxx.xx.com | 微吼服务所在域名,可传 nil 默认使用微吼域名 |
| rsaPrivateKey | 否 | xxx | RSA 私钥,若控制台设置使用 RSA 加密方式,则需要传此值 |
#import <VHLiveSDK/VHallApi.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[VHallApi registerApp:@"APPkey" SecretKey:@"App Secretkey"];
return YES;
}