smarteng/yii2-aplayer
Composer 安装命令:
composer require smarteng/yii2-aplayer
包简介
aplayer widget for Yii2.
README 文档
README
yii2-aplayer
使用方法
use smarteng\aplayer\Aplayer;
<?= \smarteng\aplayer\Aplayer::widget([
'id'=>'audioplayer',
'options' => [
'container'=> "document.getElementById('aplayer')",
"audio" => [
[
"name"=> '前前前世',
"artist" => 'RADWIMPS',
"url" => 'https://moeplayer.b0.upaiyun.com/aplayer/yourname.mp3',
"cover" => 'https://moeplayer.b0.upaiyun.com/aplayer/yourname.jpg'
]
]
]
]);?>
<div id="aplayer"></div>
具体的配置信息:
https://aplayer.js.org/#/zh-Hans/
使用的项目:
英语课.
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-01-09