Skip to content

Latest commit

 

History

History
186 lines (129 loc) · 4.89 KB

PlayerInfo.md

File metadata and controls

186 lines (129 loc) · 4.89 KB

Classes

BaseButton

PlayerInfo 播放信息类

PlayerInfo

BaseButton

PlayerInfo 播放信息类

Kind: global class

PlayerInfo

Kind: global class

new PlayerInfo(content, controls)

构造方法

Param Type Default Description
content BasePlayerInfoContent 播放信息基础类
controls BaseButton | Array 控制按钮

playerInfo.setAudioItemType(type)

设置audioItemType值

Kind: instance method of PlayerInfo
Access: public

Param Type Description
type string 类型值

playerInfo.setTitle(title)

设置title值

Kind: instance method of PlayerInfo
Access: public

Param Type Description
title string 音频的标题

playerInfo.setTitleSubtext1(titleSubtext1)

设置音频子标题1

Kind: instance method of PlayerInfo
Access: public

Param Type Description
titleSubtext1 string 音频子标题1

playerInfo.setTitleSubtext2(titleSubtext2)

设置音频子标题2

Kind: instance method of PlayerInfo
Access: public

Param Type Description
titleSubtext2 string 音频子标题2

playerInfo.setLyric(url)

设置歌词url

Kind: instance method of PlayerInfo
Access: public

Param Type Description
url string 歌词url

playerInfo.setMediaLengthInMs(mediaLengthInMs)

设置音频流的长度,单位为ms

Kind: instance method of PlayerInfo
Access: public

Param Type Description
mediaLengthInMs number 音频流的长度,单位为ms

playerInfo.setArt(src)

设置音频封面图片

Kind: instance method of PlayerInfo
Access: public

Param Type Description
src string 图片地址

playerInfo.setProvider(name, logo)

设置资源提供方信息

Kind: instance method of PlayerInfo
Access: public

Param Type Description
name string 资源提供方的名字
logo string 资源提供方的logo

playerInfo.setControls(controls)

设置控件列表

Kind: instance method of PlayerInfo
Access: public

Param Type Description
controls Control | Array 单个控件或者控件列表

playerInfo.addControl(control)

增加一个控件

Kind: instance method of PlayerInfo
Access: public

Param Type Description
control Control 控件

playerInfo.setContent(content)

设置content

Kind: instance method of PlayerInfo

Param Type Description
content BasePlayerInfoContent 内容体

playerInfo.getData() ⇒ Object

获取data

Kind: instance method of PlayerInfo
Access: public