PLVLiveVideoConfig
Objective-C
@interface PLVLiveVideoConfig : NSObject
Swift
class PLVLiveVideoConfig : NSObject
直播 SDK 配置文件
-
是否已配置有效userId、appId、appSecret,默认为NO,有效指非空字符串
Declaration
Objective-C
@property (nonatomic, readonly) BOOL configAccount;
Swift
var configAccount: Bool { get }
-
可配置chatApi私有域名
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSString *chatApiDomain;
Swift
var chatApiDomain: String! { get }
-
弹出相册或相机时不能横竖屏切换
Declaration
Objective-C
@property (nonatomic) BOOL unableRotate;
Swift
var unableRotate: Bool { get set }
-
互动页面此时是否不能横竖屏切换
Declaration
Objective-C
@property (nonatomic) BOOL triviaCardUnableRotate;
Swift
var triviaCardUnableRotate: Bool { get set }
-
是否启用 HttpDNS,默认开启
Declaration
Objective-C
@property (nonatomic) BOOL enableHttpDNS;
Swift
var enableHttpDNS: Bool { get set }
-
是否启用 IPV6,如果启用,将自动选择IP,取消HttpDNS
Declaration
Objective-C
@property (nonatomic) BOOL enableIPV6;
Swift
var enableIPV6: Bool { get set }
-
Undocumented
Declaration
Objective-C
+ (instancetype)sharedInstance;
Swift
class func sharedInstance() -> Self!
-
配置账号信息 PLV 后台,云直播->开发设置->身份认证:userId、AppID、AppSecret参数
Declaration
Objective-C
- (BOOL)configWithUserId:(NSString *)userId appId:(NSString *)appId appSecret:(NSString *)appSecret;
Swift
func config(withUserId userId: String!, appId: String!, appSecret: String!) -> Bool
Parameters
userId
用户ID
appId
应用ID
appSecret
应用密钥
-
私有域名配置
Declaration
Objective-C
+ (void)setPrivateDomainWithData:(NSDictionary *)data;
Swift
class func setPrivateDomainWithData(_ data: [AnyHashable : Any]!)