觀看條件 - 無條件觀看
更新時間: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);
}
}
