MP3 Player (Streaming) - Documentation topics on: deprecated,macros,mp3 player (streaming),.

MP3 Player (Streaming)
Deprecated

** This macro has been deprecated **

This macro will embed a streaming, flash based mp3 player using mp3s files you have uploaded into dotCMS. dotCMS will parse the xml file info and automatically display the song information in the player.

Macro Overview:

Syntax:

#mp3Player('path')

Arguments:

  • path
    This is the cms path to the uploaded mp3 files or the xml file with the play list. The path will look something like: /your/mp3s/file.mp3 or path will look something like: /your/mp3s/playlist.xml

Optional Parameters:


Usage:

This macro will automatically display the following mp3 player
Examples:

Example 1: A simple example using the required fields

#mp3Player('/path/to/mp3s/file.mp3')
#mp3Player('/path/to/mp3s/playlist.xml')
The file /path/to/playlist.xml needs to generate the following format:

<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>
<track>
<location>http://$!{host.getHostname}/mp3s/file1.mp3</location>

<creator>File Creator 1</creator>
<title>File Title #1</title>
<genre>Other</genre>
<image>http://$!{host.getHostname}/mp3s/file1.jpg</image>
</track>

<track>
<location>http://$!{host.getHostname}/mp3s/file2.mp3</location>
<creator>File Creator 2</creator>
<title>File Title #2</title>
<genre>Other</genre>

<image>http://$!{host.getHostname}/mp3s/file2.jpg</image>
</track>

<track>
<location>http://$!{host.getHostname}/mp3s/file3.mp3</location>
<creator>File Creator 3</creator>

<title>File Title #3</title>
<genre>Other</genre>
<image>http://$!{host.getHostname}/mp3s/file3.jpg</image>
</track>

</trackList>

</playlist>