Skip to content

schulle4u/yellow-audio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deutsch   English

Audio 0.9.1

HTML5 audio player.

Screenshot

How to install an extension

Download ZIP file and copy it into your system/extensions folder. Learn more about extensions.

How to use the player

Create an [audio] shortcut.

The following arguments are available, all but the first argument are optional:

Url = URL of audio file, e.g. OGG or MP3
Download = show download link for audio file, 1 or 0
Style = CSS class of player

How to use audio links

Create a notice block using an audiolist class. Every link inside the block will be treated as audio link, and basic playback controls are available.

Examples

Embedding a single audio track:

[audio /media/downloads/demo.mp3]

Embedding a single audio track, different style:

[audio /media/downloads/episode-47.mp3 - right]

Embedding a track from an external URL and allow downloading:

[audio http://wolke.robbenradio.de/podcasts/rt033_yellow.mp3 1]

Content file with list of playable audio links:

---
Title: Audio page
---
Here is a list of audio files, just click on any of the links to play them. To download a file, right-click and save as. 

! {.audiolist}
! * [File 1](/media/downloads/file1.mp3)
! * [File 2](/media/downloads/file2.mp3)
! * [External file](http://wolke.robbenradio.de/podcasts/rt033_yellow.mp3)
! * [Radio Stream](https://stream.powerradio4u.de:8000/p4u.mp3)

Settings

The following settings can be configured in file system/extensions/yellow-system.ini:

AudioDownload = show download link for audio files, 1 or 0
AudioUrlPrefix = URL prefix for audio files on a CDN
AudioStyle = CSS class to use for the player

Acknowledgements

Thanks to the Datenstrom Yellow community for help and feedback!

Developer

Steffen Schultz. Get help.