Home > @bilibili-live/web-player-biz > HomePlayer
# HomePlayer class
首页播放器
Signature:
export declare class HomePlayer implements HomePlayer
Implements: HomePlayer
# Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(container, opts) | Constructs a new instance of the HomePlayer class |
# Properties
Property | Modifiers | Type | Description |
---|---|---|---|
container | HTMLDivElement | ||
fMp4Player | static | typeof fmp4.fMp4Player | 暴露内核,用于首页卡片播放器 |
isSupported | static | typeof isSupported | |
on | (type: "enterTheRoom", handler: Function) => () => void | 监听点击进入直播间按钮事件的回调 |
# Methods
Method | Modifiers | Description |
---|---|---|
changeDanmakuExtraConfig(dmTagInfo) | ||
changeUIStatus(args) | ||
destroy() | 销毁播放器 | |
getPlayerInfo() | 获取播放器信息 | |
stop() | 断流:销毁播放器,但是保留最后一帧画面 |