Preparing search index...
The search index is not available
EbinPlayer API Documentation - v0.0.1
EbinPlayer API Documentation
ProgressBar
Class ProgressBar
组件基类,提供所有组件共有的基础功能 包括初始化、主题管理、事件处理、错误处理等
Hierarchy (
view full
)
BaseComponent
ProgressBar
Index
Constructors
constructor
Methods
init
update
get
Element
get
Config
update
Config
update
Theme
destroy
Constructors
constructor
new
Progress
Bar
(
player
,
container
,
config
,
theme
?
,
logger
)
:
ProgressBar
Parameters
player
:
IPlayerInstance
container
:
HTMLElement
config
:
ProgressBarConfig
theme
:
ComponentTheme
= {}
logger
:
Logger
Returns
ProgressBar
Methods
init
init
(
)
:
Promise
<
void
>
初始化组件
Returns
Promise
<
void
>
update
update
(
state
)
:
void
更新组件状态
Parameters
state
:
PlayerState
Returns
void
get
Element
get
Element
(
)
:
null
|
HTMLElement
获取组件元素
Returns
null
|
HTMLElement
get
Config
get
Config
(
)
:
ComponentConfig
获取组件配置
Returns
ComponentConfig
update
Config
update
Config
(
newConfig
)
:
void
更新配置
Parameters
newConfig
:
Partial
<
ComponentConfig
>
Returns
void
update
Theme
update
Theme
(
newTheme
)
:
void
更新主题
Parameters
newTheme
:
Partial
<
ComponentTheme
>
Returns
void
destroy
destroy
(
)
:
void
销毁组件
Returns
void
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
constructor
init
update
get
Element
get
Config
update
Config
update
Theme
destroy
EbinPlayer API Documentation - v0.0.1
Loading...
组件基类,提供所有组件共有的基础功能 包括初始化、主题管理、事件处理、错误处理等