保利威文档中心

帮助中心

观看条件 - 无条件观看

更新时间:2025-10-23 13:53:34

一、设置信息

1.1 无条件观看/公开观看设置信息

Interface 接口: AuthSettingItemNone

属性名 说明 类型
authType 条件类型 None
enabled 是否启用 null | YN

二、使用方式

三、验证无条件观看/公开观看

当没有设置观看限制且管理后台开启引导页时,需要进行无条件观看/公开观看验证才可以进入直播观看页。

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);
  }
}
联系客服,在线咨询