DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:mp3play

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
plugin:mp3play [2013-04-07 23:56]
24.50.111.162 [Is Chinese NS supported?]
plugin:mp3play [2016-02-14 21:25]
Laynee [Issues with iPad/iPhone Users]
Line 1: Line 1:
-====== mp3play ​plugin ​======+====== mp3play ​Plugin ​======
  
 ---- plugin ---- ---- plugin ----
-description:​ Embeds an mp3 flash player into a wiki page. +description:​ Embeds an mp3 flash player into a wiki page 
-author ​    : Michael Klier +author ​    : ​Michael Hamann, ​Michael Klier 
-email      : chi@chimeric.de+email      : michael@content-space.de
 type       : syntax type       : syntax
-lastupdate : 2010-05-31 +lastupdate : 2013-03-20 
-compatible : > 2009-02-142008-05-052011-05-25 "​Rincewind"​+compatible : AnguaAdora BelleWeatherwax, Binky, Ponder Stibbons
 depends ​   :  depends ​   : 
 conflicts ​ :  conflicts ​ : 
 similar ​   : flowplay, flowplay2 similar ​   : flowplay, flowplay2
 tags       : media, music, embed, flash tags       : media, music, embed, flash
-downloadurl: ​http://cloud.github.com/downloads/​chimeric/​dokuwiki-plugin-mp3play/​plugin-mp3play.tgz +downloadurl: ​https://​github.com/​michitux/​dokuwiki-plugin-mp3play/​archive/​master.zip 
-bugtracker : http://​github.com/​chimeric/​dokuwiki-plugin-mp3play/​issues +bugtracker : https://​github.com/​michitux/​dokuwiki-plugin-mp3play/​issues 
-sourcerepo : http://​github.com/​chimeric/​dokuwiki-plugin-mp3play/​+sourcerepo : https://​github.com/​michitux/​dokuwiki-plugin-mp3play/​
 ---- ----
  
- 
-^ Download | [[http://​cloud.github.com/​downloads/​chimeric/​dokuwiki-plugin-mp3play/​plugin-mp3play.tgz|plugin-mp3play.tgz]] | 
-^ Github URL | [[http://​github.com/​chimeric/​dokuwiki-plugin-mp3play]] | 
  
 ===== Description ===== ===== Description =====
 +
 This plugin is a DokuWiki port of the [[http://​www.1pixelout.net/​code/​audio-player-wordpress-plugin/​|Wordpress Audio Player Plugin]]. It allows you to play mp3 files((and mp3 files only!)) on your wiki page. This plugin is a DokuWiki port of the [[http://​www.1pixelout.net/​code/​audio-player-wordpress-plugin/​|Wordpress Audio Player Plugin]]. It allows you to play mp3 files((and mp3 files only!)) on your wiki page.
 +
 +If you don't use "​loop"​ and "​autostart"​ - //**this plugin don't need for modern HTML5 compartible browsers**//​ because of DokuWiki native support for HTML5 tag <​audio>​. All you need is only delete "​!"​ sign in "​mp3 ​    ​!audio/​mpeg"​ string in ''​conf/​mime.conf''​. "​Loop"​ and "​autostart"​ features already requested
  
 ===== Installation ===== ===== Installation =====
 +
 Download the archive and unpack it into ''<​dokuwiki>/​lib/​plugins''​. Download the archive and unpack it into ''<​dokuwiki>/​lib/​plugins''​.
  
-  * [[http://cloud.github.com/downloads/​chimeric/​dokuwiki-plugin-mp3play/​plugin-mp3play.tgz|.tgz]] Plugin Manager+  * [[https://​github.com/​michitux/​dokuwiki-plugin-mp3play/​archive/​master.zip|.zip]] Plugin Manager
   ​   ​
 The plugin is also available via git. The plugin is also available via git.
Line 33: Line 34:
 <​code>​ <​code>​
 % cd <​dokuwiki>/​lib/​plugins % cd <​dokuwiki>/​lib/​plugins
-% git clone git://​github.com/​chimeric/​dokuwiki-plugin-mp3play.git mp3play+% git clone git://​github.com/​michitux/​dokuwiki-plugin-mp3play.git mp3play
 </​code>​ </​code>​
  
Line 59: Line 60:
  
 ===== Demo ===== ===== Demo =====
-You can view the plugin in action [[http://​chimeric.de/​_demo/​plugin:​mp3play|here]] (Link is dead FIXME) 
  
-Okay, here goes my website ​http://wp.imgre.ru/музыка+An example can be found [[http://www.lichterkette2009.at/buch/​doku.php?​id=medien#​markus_meisters_song_stell_dir_vor_-_juni_2010|here]]. 
 ===== Changelog ===== ===== Changelog =====
-A complete changelog is available [[http://​github.com/​chimeric/​dokuwiki-plugin-mp3play/​commits/​|here]]. 
  
-{{rss>http://​github.com/​feeds/​chimeric/​commits/​dokuwiki-plugin-mp3play/​master 10 1d}}+  * **2013-04-20**:​ use jQuery instead of the deprecated old JavaScript library, this makes the plugin compatible with Weatherwax. Note that the plugin is still rather outdated and using a solution which doesn'​t require flash would be better. 
 + 
 +A complete changelog is available [[https://​github.com/​michitux/​dokuwiki-plugin-mp3play/​commits/​|here]]. 
 + 
 +{{rss>https://​github.com/​michitux/​dokuwiki-plugin-mp3play/commits/master.atom 10 1d date}}
  
 ===== Bugs / Feature Requests ===== ===== Bugs / Feature Requests =====
-Please report bugs and feature requests at the [[http://​github.com/​chimeric/​dokuwiki-plugin-mp3play/​issues|bug tracker]].+Please report bugs and feature requests at the [[https://​github.com/​michitux/​dokuwiki-plugin-mp3play/​issues|bug tracker]].
  
 ===== Discussion ===== ===== Discussion =====
Line 98: Line 102:
 05/04/2013 12:30:31 05/04/2013 12:30:31
  
 +**<​Solution>​**Replace the line in syntax.php
 +
 +<​code>​
 +$renderer->​doc .= ' ​   <param name="​FlashVars"​ value="'​ . $params . '​soundFile=' ​
 +. DOKU_URL . '​lib/​exe/​fetch.php?​media='​ . $data['​mp3'​] . '"​ />' . DOKU_LF;
 +</​code>​
 +with
 +<​code>​
 +$renderer->​doc .= ' ​   <param name="​FlashVars"​ value="'​ . $params . '​soundFile=' ​
 +. DOKU_URL . '​lib/​exe/​fetch.php?​media='​ . urlencode(urlencode ($data['​mp3'​]))
 +. '"​ />' . DOKU_LF;
 +</​code>​
 +With this double encode trick, you will be able to play files with UTF8 file name and/or namespace.
 +
 +11/​3/​2014 ​
 ====Where to put the mp3 files (Solution)==== ====Where to put the mp3 files (Solution)====
 It is not indicated anywhere above, but the mp3 files must me located in the /​data/​media/​ directory. Otherwise you will get the 'File not found' error. And when you invoke it should be this way: It is not indicated anywhere above, but the mp3 files must me located in the /​data/​media/​ directory. Otherwise you will get the 'File not found' error. And when you invoke it should be this way:
Line 104: Line 123:
 <​code>​{{mp3play>​media:​xxxxx.mp3}}</​code>​ <​code>​{{mp3play>​media:​xxxxx.mp3}}</​code>​
 Bat 07/​04/​2013 ​ Bat 07/​04/​2013 ​
 +
 +
 +==== Issues with iPad/iPhone Users ====
 +I have a couple of people report they don't see the play & speaker symbols when they access the site from iPad/​iPhone. No error message, just nothing to "click to play" - java issues?
 + --- [[user>​charles.minto|charles.minto]] //​2014/​03/​23 20:11//
 +
 +Update your DokuWiki installation,​ it can now play single audio files (MP3, OGG & WAV) on mobile devices by default. --- [[user>​Laynee|Laynee]] //​2016-02-14 21:19//
plugin/mp3play.txt · Last modified: 2017-01-22 13:24 by 188.78.200.223