- Compatibilidad con Joomla
- 4.x
- Descripción breve
- Simple Audio Player Shortcode Plugin
Easily integrate an audio player on your site.
This plugin adds a general shortcode [audio], usable in classic Joomla articles as well as in the native "custom HTML content" module, and in all other Joomla extensions developed in the Joomla spirit!
The shortcode displays a classic audio player, the shortcode syntax is exactly the same as that of WordPress, which is why this plugin is made for you if you want to import WordPress articles into Joomla, for example.
The audio player is based on the MediaElement.js library
Shortcode usage:
- Simple: [audio src="/source.mp3"]
- Advanced: [audio src="/source.mp3" loop="on" preload="auto" autoplay="on"]
Mandatory parameter:
- src: URL of your audio file (the "mp3" parameter also exists, as an alias), be careful not to use the characters [ and ] in the file name.
Optional settings:
- loop: on / off = play the file in a loop
- autoplay: on / off = play the file automatically
- preload: none / auto / metadata = By default the file is not preloaded, auto = automatic file preloading, metadata = automatically preloads only the file's metadata.
- style: CSS code that will be applied to the audio tag
- background: background color of the player, can be in various formats: #228CBF, rgb(34, 140, 191) or rgba(34, 140, 191, 0.50)
- hidden: on / off = hides the audio player
- showvolume: on / off = allows showing or hiding the volume group
- txtcolor: changes the text color, colors in standard CSS format: #f00, red, rgba(255,0,0,0.5), etc.
- btcolor: changes the color of the main buttons: black, red, green, blue, or white
Underlined value = default value
And if multiple players are present on the same page? Autoplay is disabled, and it is impossible to play 2 pieces of music at the same time.