简介
此短代码显示一个简单的音频播放器,能够完成任务,短代码语法与WordPress相同,因此如果您想将WordPress文章导入Joomla,此插件适用于您。
使用的JS库是MediaElement.js。
** 短代码使用方法 :**
简单: [audio src="audio.mp3"]
高级: [audio src="source.mp3" loop="on" preload="auto" autoplay="on"]
必选参数
- src : 您音频文件的URL
可选参数
loop : on / off = 允许媒体循环播放
autoplay : on / off = 当媒体文件准备好时自动播放媒体。
preload : none / auto / metadata = 指定页面加载时音频应该如何以及是否加载,默认情况下,页面加载时不应加载音频,auto = 页面加载时完全加载音频,metadata = 页面加载时只加载元数据。
样式 : 应用到播放器的CSS代码
背景 : 播放器的背景颜色,支持多种格式:#228CBF rgb(34, 140, 191) 或 rgba(34, 140, 191, 0.50) ..
隐藏 : 开 / 关 = 隐藏播放器
显示音量 : 开 / 关 = 允许显示或隐藏音量组
文本颜色 : 改变文本颜色,接受经典CSS颜色:#f00, red, rgba(255,0,0,0.5) ..
按钮颜色 : 黑色,红色,绿色,蓝色或 白色
默认值 = 默认值
常见问题解答
如果同一页上有多个播放器怎么办?
自动播放已禁用,无法同时播放两首歌曲。
此插件与Joomla "自定义内容" 模块兼容吗?
是的:然而,在模块设置中,必须启用“内容插件”选项
此插件与直播流 .m3u8、.mwa ... 兼容吗?
目前不支持
此插件需要Flash才能工作吗?
不需要,Adobe Flash现在不需要,将来也不会需要
变更日志 版本1.5
+ new attribute added : "showvolume"
+ new attribute added : "txtcolor"
+ new attribute added : "btcolor"
+ update jQuery to latest version (3.2.1)
+ rewrite the way to load the main library (more efficient now)
+ CSS : removing 'box-shadow' on buttons (some templates skin all buttons..)
+ CSS : removing 'outline' on buttons focused
Version 1.4 :
+ add automatic updates
+ fix a display bug with some specific templates
Version 1.3 :
+ new global params "default width", define the default player width, even if it loads in a tab or a toggler
Version 1.2 :
+ new attribute added : "hidden"
Version 1.1 :
+ new attribute added : "background"
+ fix some bugs
创建 : 2014年10月
更新 : 2018年2月
Joomla : 2.x - 3.x
兼容 : 所有浏览器
需要Flash : 否
此插件添加了一个通用的shortcode [audio],可用于Joomla经典文章以及原生“自定义HTML内容”模块,以及所有其他Joomla扩展!
该shortcode显示一个标准的音频播放器,其语法与WordPress中的语法完全相同,因此如果您想将WordPress文章导入Joomla,例如,此插件正是为您准备的。
音频播放器基于MediaElement.js库
使用shortcode
简单: [audio src="source.mp3"]
高级: [audio src="source.mp3" loop="on" preload="auto" autoplay="on"]
必选参数
- src : 您音频文件的URL("mp3"参数也存在,作为别名)
可选参数
loop : 开 / 关 = 循环播放文件
autoplay : 开 / 关 = 自动播放文件
preload : none / auto / metadata = 默认情况下,文件不会预加载,auto = 自动预加载文件,metadata = 只预加载文件的数据。
style : 将应用于audio标签的CSS代码
background : 播放器的背景颜色,可以是各种格式:#228CBF rgb(34, 140, 191) 或 rgba(34, 140, 191, 0.50)
hidden : 开 / 关 = 隐藏音频播放器
showvolume : 开 / 关 = 允许显示或隐藏音量组
txtcolor : 修改文本颜色,接受CSS经典格式:#f00, red, rgba (255,0,0,0.5) ..
btcolor : 修改主要按钮的颜色:黑色,红色,绿色,蓝色或 白色
斜体 值 = 默认值
问题/回答
如果同一页上有多个播放器怎么办?
自动播放被禁用,无法同时播放两首歌曲。
此插件与Joomla "自定义内容" 模块兼容吗?
是的:然而,在模块设置中,必须启用“内容插件”选项
此插件与直播流 "live" .m3u8、.mwa ... 兼容吗?
目前不支持
此插件需要Flash才能工作吗?
不,Adobe Flash从来也不是、将来也永远不会是必要的
变更日志
Version 1.5 :
+ support de l'attribut : "showvolume"
+ support de l'attribut : "txtcolor"
+ support de l'attribut : "btcolor"
+ mise à jour de jQuery (3.2.1)
+ réécriture la façon de charger la bibliothèque principale (plus efficace maintenant)
+ CSS : suppression de 'box-shadow' sur les boutons
+ CSS : suppression de 'outline' sur les boutons qui ont le focus
Version 1.4 :
+ ajout du support des mises à jour automatique
+ correction d'un bug d'affichage avec certains thèmes
Version 1.3 :
+ ajout d'un paramètre global de configuration "largeur par défaut", permet de définir la largeur du lecteur si ce dernier est dans un tabs par exemple
Version 1.2 :
+ support de l'attribut "hidden"
Version 1.1 :
+ support de l'attribut "background"
+ correction de quelques bugs
创建:2014年10月
更新:2018年2月
Joomla:2.x - 3.x - 4.Alpha
兼容:所有浏览器
需要Flash:否
简单音频播放器 - 短代码
- 版本
- 1.5
- 开发者
- SUDesign
- 最后更新
- 2020年5月23日
4年前 - 添加日期
- 2016年5月24日
- 许可证
- GPLv2或更高版本
- 类型
- 免费下载
- 注册
- 是
- 包含
- p
- 兼容性
- J3 J4
使用 Joomla! 更新系统
分享