DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:mp3play2

mp3play2 Plugin

Compatible with DokuWiki

Anteater, Rincewind, Angua, Adora Belle

plugin The Mp3Play plugin let you add an flash mp3 player to your Webpage and Stream Mp3 files

Last updated on
2012-10-22
Provides
Syntax

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Tagged with embed, flash, internet, mp3, music, play, radio, stream

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

  • Download “MP3 Play plugin” and unzip file locally
  • Transfer to server holding Dokuwiki
    • Copy subfolder “mp3play” to: ..your..dokuwiki…/lib/plugins

Syntax/Usage

The Plugin can be seen in action here

The plugin takes an xml file as input, inside as many mp3 files or streams can be defined.

{{mp3play>path-to-playlist.xml}}

“Path to the Playlist” should look something like this:

namespace:folder:subfolder:....:playlist.xml

e.g.

{{mp3play>http://zawiki.zapto.org/lib/exe/fetch.php/tschinz:music:mp3play:playlist.xml}}
or
{{mp3play>tschinz:music:mp3play:playlist.xml}}

Settings

Admin setting Default value Description
Showplaylist 1 0 or 1
Showeq 1 0 or 1
Firsttrack 1 First track to play 1-x
Initvol 50 Start volume
Width 100% Width size in pixel or %
Height 320 Height in pixel or %

Playlist example

playlist.xml
<?xml version="1.0" encoding="UTF-8"?>
<songs>
  <song path="http://streamer-dtc-aa02.somafm.com:80/stream/1018/" title="Some Internetradio Mp3 Stream" />
  <song path="http://77.67.106.13:10203/" title="Mountain Chill - Planets Destination for Chill" />
  <song path="http://musicweb.koncon.nl/AllCourses/hdpj/chapter05/TaketheATrain.mp3" title="URL to a MP3 file on the Net" />
</songs>

Change Log

  • 2011-02-17
    • Initial release
  • 2012-10-22
    • Moved repo to github

Known Bugs and Issues

Incompatibility with original mp3play plugin

By the time I wrote this plugin I didn't realized that there is already a plugin called mp3play. Therefore both plugins can't coexist, choose one.

Problems with some mp3 streams

First be sure that your Internetradio station is a mp3 stream (not ogg or something else). Second there is still some incompatibility with some browsers.

Address rewriting

Plugin cut doku.php from URL, so if you use userewrite = 1, comment $url = substr($url,0,-9); in plugin's syntax.php

And for playlist xml file, $data = $url.'/lib/exe/fetch.php/'.$data; changes to $data = $url.'/lib/exe/fetch.php?media='.$data;.

ToDo/Wish List

Let me know

FAQ

None

Discussion

Discuss here

plugin/mp3play2.txt · Last modified: 2014-10-02 13:31 by 84.226.123.41