保利威文档中心

幫助中心

Interface: PlayerConfig

更新時間:2025-10-10 12:02:04

Polyv Wx Live Player Component


Polyv Wx Live Player Component / modules/plv-live-player-core/polyv-live-player / PlayerConfig

Interface: PlayerConfig

播放器初始化配置項

Properties

auth

auth: AuthSetting

鑑權參數


cid

cid: string

頻道 ID


forceVideo?

optional forceVideo: boolean

是否強制使用 video 組件播放直播,預設為 false


isAutoChange?

optional isAutoChange: boolean

自動切換直播與回放影片,預設為 false


level?

optional level: number

預設使用的清晰度


line?

optional line: number

預設使用的線路


playCore?

optional playCore: number

延遲核心


statistics?

optional statistics: Partial<{ param1: string; param2: string; param4: string; param5: string; sessionId: string; }>

統計資料


uid

uid: string

使用者 ID


vodDuration?

optional vodDuration: number

回放時長


vodSrc?

optional vodSrc: string

回放位址


xAuthToken?

optional xAuthToken: string

鑑權 Token

联系客服,在线咨询