观看条件 - 无条件观看
更新时间:2024-10-10 17:27:10
一、设置信息
1.1 无条件观看设置信息
Interface 接口: AuthSettingItemNone
| 属性名 | 说明 | 类型 |
|---|---|---|
authType |
条件类型 | None |
二、使用方式
三、验证无条件观看
当没有设置观看限制且管理后台开启引导页时,需要进行无条件观看验证才可以进入直播观看页。
Api 方法: verifyNoneAuth(): Promise<VerifyNoneAuthResult>
返回值说明: 授权结果,Promise<VerifyNoneAuthResult> 类型
示例:
// 执行无条件授权
async function toDoAuthNone() {
const result = await watchCore.auth.verifyNoneAuth();
if (result.success) {
await handleAuthVerifySuccess(result);
} else {
await handleAuthVerifyFail(result);
}
}
