保利威文档中心

幫助中心

觀看條件 - 無條件觀看

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