GreenAudioPlayerMacro
Displays a themeable widget for playing an audio, controlling the volume and optionally downloading the file. The player can be positioned either in the content flow or at the window bottom. This macro is based on the Green Audio Player JavaScript widget which is available under the MIT license and which was slightly customized within this fork.
Usage
{{greenAudioPlayer attachment="XWiki.GreenAudioPlayer.Audio@bach-french-suite-3-sarabande.ogg" placement="bottom" volumeSliderPlacement="top"/}}
Parameters
Name | Description | Is mandatory | Default value |
---|---|---|---|
attachment | Attachment reference of the audio to be played. | true | |
placement | Indicates whether the player should be displayed in the content flow or in a fixed position (bottom). | false | |
volumeSliderPlacement | Indicates the volume control panel placement relatively to the player: top, middle, or bottom. | false | bottom |
showDownloadButton | Indicates whether a download button should be present or not. | false | false |