看见@9527在找这个 东西 总结一下最最最简单的套用方法
优点:不用改代码 不用上传文件到本地 主要是好看
缺点:只支持 内个云的 地址或ID
下面看图吧
APIoption default description
id (编号) require song id / playlist id / album id / search keyword
server (平台) require music platform: netease, tencent, kugou, xiami, baidu
type (类型) require song, playlist, album, search, artist
auto (支持种类) options music link, support: netease, tencent, xiami
fixed (固定底部模式) false enable fixed mode
mini (模式) false enable mini mode
autoplay (自动播放) false audio autoplay
theme (主题颜色) #2980b9 main color
loop (循环播放) all player loop play, values: ‘all’, ‘one’, ‘none’
order (顺序) list player play order, values: ‘list’, ‘random’
preload (加载) auto values: ‘none’, ‘metadata’, ‘auto’
volume (声量) 0.7 default volume, notice that player will remember user setting, default volume will not work after user set volume themselves
mutex (限制) true prevent to play multiple player at the same time, pause other players when this player start play
lrc-type (歌词) 0 lyric type
list-folded (列表折叠) false indicate whether list should folded at first
list-max-height (最大高度) 340px list max height
storage-name (存储名称) metingjs localStorage key that store player setting 选项 默认 描述
id 要求 歌曲ID/播放列表ID/专辑ID/搜索关键字
server 要求 音乐平台:netease, tencent, kugou, xiami,baidu
type 要求 song, playlist, album, search, artist
auto 选项 音乐链接,支持:netease,tencent``xiami
fixed false 启用固定模式
mini false 开启迷你模式
autoplay false 音频自动播放
theme #2980b9 主色
loop all 播放器循环播放,值:‘all’、‘one’、‘none’
order list 播放器播放顺序,值:‘list’,‘random’
preload auto 值:“无”、“元数据”、“自动”
volume 0.7 默认音量,注意播放器会记住用户设置,用户自己设置音量后默认音量将失效
mutex true 防止同时播放多个播放器,当该播放器开始播放时暂停其他播放器
lrc-type 0 抒情类型
list-folded false 指示列表是否应首先折叠
list-max-height 340px 音乐列表最大高度
storage-name metingjs 存储播放器设置的 localStorage 键
|