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

NameDescriptionIs mandatoryDefault value
attachmentAttachment reference of the audio to be played.true
placementIndicates whether the player should be displayed in the content flow or in a fixed position (bottom).false
volumeSliderPlacementIndicates the volume control panel placement relatively to the player: top, middle, or bottom.falsebottom
showDownloadButtonIndicates whether a download button should be present or not.falsefalse

logo.png