Audio

Simple audio player module by Martin Janecke

Aneamal supports integrating video and audio files with the [v] and [w] file tokens natively. These are preferably used together with visual media though, even if it is just a photo of an album cover. This x-module, on the other hand, provides bare-bones controls for an audio track without image.

Example

[x-audio]->march.mp3
An excerpt of "March"
Composer: HienTau->https://veintiuno.de/
An excerpt of March
Composer: HienTau

Tip

Browsers that do not support the audio player show a link to download the audio file instead. Its filename is used as link text by default then. You can choose a different link text by setting a clue like this:

[x-audio:77 seconds of solemn music]->march.mp3

License

The Audio module is published under the GNU All-Permissive License:

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.

Installation

  1. Download Audio 1.0.
  2. Unzip the downloaded ZIP archive, revealing the folder x-audio.
  3. Upload the folder x-audio into your aneamal directory.

Styling

The music player is implemented as HTML audio element in the generated webpage, for example:

<audio src='/module/audio/march.mp3' controls><a href='/module/audio/march.mp3'>march.mp3</a></audio>

Select the audio element for basic styling. For instance, the following CSS code centers the player horizontally on the webpage.

audio {
	display: block;
	margin: 0 auto;
}

Contact

Please write an email in case you found a bug or need help. You can find the developer’s email address here.

Version history

Audio 1.0

  • initial release
  • works with Aneamal 30+
  • published 2023-12-28