保利威文档中心

幫助中心

頻道模組

更新時間:2024-10-10 17:27:10

频道模块(channel) 是一個服務於保利威頻道功能的模組,包括取得頻道設定、取得頻道最新的推流資訊、取得直播狀態等。

一、Api 方法概覽

Api 方法 說明
getChannelBasicInfo 取得頻道基礎資訊
getChannelScene 取得頻道場景
getPromoteId 取得渠道 id
getCurrentSessionId 取得頻道直播場次號
getLiveStatus 取得頻道直播狀態
removeLiveStatusPolling 關閉直播狀態輪詢
startLiveStatusPolling 開始直播狀態輪詢
getPageViewCount 取得觀看頁瀏覽次數
startPageViewPolling 開啟觀看頁瀏覽次數請求輪詢
stopPageViewPolling 停止觀看頁瀏覽次數請求輪詢
getPushInfo 取得推流資訊
getWatchSetting 取得觀看頁設定
getLayoutSetting 取得頻道佈局設定
getThemeSetting 取得頻道皮膚主題設定
getTeacherInfo 取得講師資訊
getPageViewSetting 取得瀏覽次數設定資訊
getCountdownSetting 取得直播倒數計時設定
getShareInfo 取得分享資訊

二、Event 事件概覽

Event 事件 說明
ChannelEvents.LiveStatusChange 直播狀態改變事件
ChannelEvents.SessionIdChange 場次號改變事件
联系客服,在线咨询