- BaseButton
PlayerInfo 播放信息类
- PlayerInfo
PlayerInfo 播放信息类
Kind: global class
- PlayerInfo
- new PlayerInfo(content, controls)
- .setAudioItemType(type)
- .setTitle(title)
- .setTitleSubtext1(titleSubtext1)
- .setTitleSubtext2(titleSubtext2)
- .setLyric(url)
- .setMediaLengthInMs(mediaLengthInMs)
- .setArt(src)
- .setProvider(name, logo)
- .setControls(controls)
- .addControl(control)
- .setContent(content)
- .getData() ⇒
Object
构造方法
Param | Type | Default | Description |
---|---|---|---|
content | BasePlayerInfoContent |
|
播放信息基础类 |
controls | BaseButton | Array |
控制按钮 |
设置audioItemType值
Kind: instance method of PlayerInfo
Access: public
Param | Type | Description |
---|---|---|
type | string |
类型值 |
设置title值
Kind: instance method of PlayerInfo
Access: public
Param | Type | Description |
---|---|---|
title | string |
音频的标题 |
设置音频子标题1
Kind: instance method of PlayerInfo
Access: public
Param | Type | Description |
---|---|---|
titleSubtext1 | string |
音频子标题1 |
设置音频子标题2
Kind: instance method of PlayerInfo
Access: public
Param | Type | Description |
---|---|---|
titleSubtext2 | string |
音频子标题2 |
设置歌词url
Kind: instance method of PlayerInfo
Access: public
Param | Type | Description |
---|---|---|
url | string |
歌词url |
设置音频流的长度,单位为ms
Kind: instance method of PlayerInfo
Access: public
Param | Type | Description |
---|---|---|
mediaLengthInMs | number |
音频流的长度,单位为ms |
设置音频封面图片
Kind: instance method of PlayerInfo
Access: public
Param | Type | Description |
---|---|---|
src | string |
图片地址 |
设置资源提供方信息
Kind: instance method of PlayerInfo
Access: public
Param | Type | Description |
---|---|---|
name | string |
资源提供方的名字 |
logo | string |
资源提供方的logo |
设置控件列表
Kind: instance method of PlayerInfo
Access: public
Param | Type | Description |
---|---|---|
controls | Control | Array |
单个控件或者控件列表 |
增加一个控件
Kind: instance method of PlayerInfo
Access: public
Param | Type | Description |
---|---|---|
control | Control |
控件 |
设置content
Kind: instance method of PlayerInfo
Param | Type | Description |
---|---|---|
content | BasePlayerInfoContent |
内容体 |
获取data
Kind: instance method of PlayerInfo
Access: public