Extension talk:FlashMP3

From MediaWiki.org
Jump to navigation Jump to search

Name the tracks[edit]

Hello, I would like to know how do I name the tracks because it says "Track #1", "Track #2",... and I would like to change that in order to name my audio files. Is it possible? If it is, how? Thank you.

This happens when the mp3-file doesn't have a proper title tag or when your file loads from the external storage via full URL. You need to edit author and title tags and then upload your file to local wiki-storage.--AvalarMS 20:04, 27 January 2011 (UTC)
In that case is it possible to make it not display the track number at all. I'm hosting it on amazon S3 so I would like it not to name the tracks if it's not going to name the proper title tags.Wikimanz (talk) 02:02, 20 February 2012 (UTC)

Rigt to left player option[edit]

The new version of player can switch the player layout to RTL mode (right to left) for Arabic and Hebrew language blogs. How to add this mode in wiki?--Noh4i 21:41, 24 June 2010 (UTC)

Add to toolbar[edit]

I've added mine to my toolbar. If you want to do the same, go to your page MediaWiki:Common.js and edit it. Add something similar to this:

/* Any JavaScript here will be loaded for all <s>users</s> on every page load. */
 /** Extra toolbar options ******************************************************
  *  Description: UNDOCUMENTED
  *  Maintainers: [[User:MarkS]]?, [[User:Voice of All]], [[User:R. Koot]]
 //This is a modified copy of a script by User:MarkS for extra features added by User:Voice of All.
 // This is based on the original code on Wikipedia:Tools/Editing tools
 // To disable this script, add <code>mwCustomEditButtons = [];<code> to [[Special:Mypage/monobook.js]]
 if (mwCustomEditButtons) {
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://www.koreanwikiproject.com/wiki/skins/common/images/Button_mp3.png",
     "speedTip": "Mp3",
     "tagOpen": "<flashmp3>filename.mp3|leftbg=003478|rightbg=c60c30|lefticon=ffffff|righticon=ffffff</flashmp3>",
     "tagClose": "",
     "sampleText": ""};


I originally got it from [[[m:Help talk:Edit toolbar#How can we add feature to the Edit bar.3F|here]]] and modified it. My code above actually includes my default parameters of a red an blue colored player. I have also included a custom image I made. I created it and am the author for it, and grant anyone permission to reuse it on their own wiki. All I ask is don't link it from my server, upload to your local server please. Bluesoju 13:15, 10 February 2009 (UTC)

Here is a picture of my toolbar by the way: http://www.koreanwikiproject.com/wiki/images/8/8a/New_tool_bar.png

Bluesoju 13:15, 10 February 2009 (UTC)

Default Color Scheme[edit]

First this plugin is great! Thanks for the work. Where exactly do I change the default color schemes rather than doing it during runtime?

Anyone?? Bluesoju 13:15, 10 February 2009 (UTC)

Hiding the mp3 files[edit]

That's a real cool extension alltho songs aren't protected tru this , they can still see the .mp3 file in the html source

Maybe the new last.fm version is more to your liking. -- Matsch 19:48, 4 March 2007 (UTC)

No template expansion[edit]

I tried to use the FlashMP3 extension with templates: I put "<flashmp3>{{{download}}}</flashmp3>" in the template, and used that template in an article. However, {{{download}}} isn't replaced.

Hi, it is my first extension for and experience with MediaWiki. How would I go about to do this? You have an example? What is the use of doing it like this? Thanks. -- Matsch 18:27, 8 March 2007 (UTC)
What you need to do is to put the special flash mp3 tags into templates and substitute them into the articles. No wikisyntax in between the two tags will be read. --EivindJ 11:38, 1 April 2009 (UTC)
The problem will be fixed in mediawiki 1.16: Extensions and Templates and there's also a workaround for 1.15 --Clausekwis 14:04, 3 October 2009 (UTC)
See the parser function #tag, documented here -- Mw.clearish (talk) 19:43, 4 February 2013 (UTC)

XSS Vulnerability[edit]

Thanks for fixing the most gaping hole :) I didn't try, but it looks like the id-argument can still be used for evil things: $id = $args['id'], $id is the used in HTML output unescaped.

Btw... generally, it's cleaner to do the escaping on output, not when receiving the input... but it'll work i guess :) -- Duesentrieb 21:42, 2 April 2007 (UTC)

Ok, sorry. I just had a quick glance and didn't see the id... I thought it was the user input that must be validated (parsing the output here makes it so much more difficult..)? Anyway, hope it's "safe" now ;-) -- Matsch 21:57, 2 April 2007 (UTC)

No, what I mean is: either validate on input (i.e. parse and check), or escape on output. Escaping in the beginning, before the split, somehow feels dirty :) But it should work OK, so don't worry about it.

In the check $id, $args['id'] should be @$args['id'] or isset($args['id']) - accessing uninitialized array members triggers a warning. And the count($args)>0 bit is redundant. But the XSS problem should be gone now, thanks for the prompt response. I'll remove the alert tag. -- Duesentrieb 00:16, 3 April 2007 (UTC)


Does anyone know where to input the base syntax. I uploaded an mp3 to my wiki site and I wanna know how to play it the flash player. Thanks

Hide the Player?[edit]

Could somebody please tell me if there's an option to hide the player, or would that require some additional coding?

What do you mean by hiding the player? Playing mp3s in the background would be a completely different extension I guess. -- Matsch 12:39, 17 August 2008 (UTC)

Open in New Window?[edit]

Does anyone know if there is an easy way to get this player to open in it's own window, so the track will continue to play while a user surfs through the wiki pages? Thanks

Repeat Request --- Opening In New Window[edit]

I was hoping another request for a method to have this player automatically open in it's own window might get a response. As previously requested, this would allow the mp3 to continue playing while a viewer surfed through other wiki pages. Otherwise this player is smooth, small, and easy to install and use.

I might look into it at some point in time. Shouldn't be too hard. -- Matsch 12:39, 17 August 2008 (UTC)

What about a button/keyboard shortcut for tweaking the volume?[edit]

This is in the responsibility of the Flash player not really of the extension. You can find a Flash audio player that does this or request this feature with the player's authors. -- Matsch 12:39, 17 August 2008 (UTC)

Default parameters?[edit]

Is there a possibility to have default parameters set? I've setup some site-specific color-scheme which I'm willing to use on my wiki as a default so when people use <flashmp3>filename.mp3</flashmp3> it will automatically switch to my settings, in stead of the default look. Is this possible?

I tried circumventing this by creating a Template:Mp3 which I could use as {{Mp3|filename.mp3}} so it would automatically enter the following: <flashmp3>filename.mp3||bg=0xFFCB1F|leftbg=0xFFCB1F|rightbg=0xFFCB1F</flashmp3>, but no dice: it gives the following error: Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.--Fredd-E 16:05, 25 August 2008 (UTC)

anyone? Bluesoju 16:50, 5 February 2009 (UTC)

Cannot have more than 15 players on one page (Firefox)[edit]

Well this is what I've experienced: We cannot have more than 15 players on one page (Firefox). Anyone else got this working? --Kenny5 03:52, 24 November 2008 (UTC)

Can anyone confirm there is still this limitation? I've been able to embed 15 players on my pages -- 05:16, 6 December 2009 (UTC)

Error Opening File[edit]

I have not made any changes to my MediaWiki installation or this plugin. However, I am getting an "Error Opening File" from the flashmp3 plugin when it tries to play an MP3. I have tried to reinstall the code. Anyone else run into this problem? Any suggestions or known incompatibilities?

Seems like it can't comprehend characters like æ, å and ø, for example. --EivindJ 11:35, 1 April 2009 (UTC)

Can't upload mp3[edit]

Midiawiki won't recognise mp3[edit]

I've installed this and it all seems cool, I included the line - $wgFileExtensions[] = 'mp3'; - in my local settings; but when I try to upload an mp3 I get: "The file is corrupt or has an incorrect extension. Please check the file and upload again." any ideas?Bob M 15:31, 21 May 2009 (UTC)

I finally figured out the solution with the info on this link. --Bob M 08:55, 14 July 2009 (UTC)

Works with newer version of flash player too[edit]

The link to the swf player is from 2006. I tried using audio player 2.0 beta from here http://wpaudioplayer.com/ and was pleasantly surprised it also works just fine with no other modifications. --MatthewJenkins 18:38, 30 June 2009 (UTC)

Code has no closing php tag[edit]

I notice the code has no closing php tag.--Well then 05:31, 31 October 2009 (UTC)

No unicode file names[edit]

I've noticed this won't recognize file names in unicode, i.e. Korean. This seems like it would be a simple fix, does anyone have any ideas where in the code you would do this? -- 05:16, 6 December 2009 (UTC)

Suggestions for new parameters[edit]

Hi! I want to start my mp3 file from specific position (time). But I found that where is no such parameter in player. Is it possible to add this feature (for example: startfrom='1:25') in next version??


Hi, is this extension going to be updated any-time soon? It is employing quite some deprecated function calls. Please let us know. --Clausekwis 19:43, 2 January 2011 (UTC)

Can't Embed Hey, this seems like just the player I wanted however, I have followed the instructions but when I try embedding the player it either doesn't embed or insists that I update my flash player which is already the most recent

I agree with the above, I also get this error of it either does not work in embed or insists on updating flash even though its current. Can you fix it please? MW 1.17

Error: Fatal error: Class 'Image' not found[edit]

When I try to embed an MP3 file that I uploaded to my Wiki Site I get the error "Fatal error: Class 'Image' not found". The error points to this line in the flashmp3.php code: $img = new Image($title);. Is there something I'm missing? I'm on version 1.18. It works fine when embedding an external file and it doesn't have to call the function getFlashMP3Title. --Mloby 18:20, 18 January 2012 (UTC)

I'm having the same problem. I just upgraded to mediawiki 1.18 --Bluesoju (talk) 14:42, 8 April 2012 (UTC)

"Mp3 file not loaded"[edit]

I've installed the latest version of this plugin on my site (MW 1.18), but no player appears and if I click with right button where the player should appear, it says "Movie not loaded". Here it's an example. Please let me know, thanks in advance ;) --Andrea Razza (talk) 16:52, 5 May 2012 (UTC)

Sorry my fault, I didn't unpack ALL files in extension/FlashMp3 but i've unpacked them in extensions/FlashMp3/audio-player. Thanks and good work! --Andrea Razza (talk) 22:46, 8 May 2012 (UTC)

FlashMP3 incompatible with mediawiki 1.19[edit]

Since the last update of mediawiki on our site Wiki-Brest, this extension is out of order.

Could you explain me how do to, to play our files mp3 ?

Is there an extension replaced flashmp3 ?

Thanks a lot. --Filyg (talk) 21:44, 27 November 2012 (UTC)

Is it working on MW 1.27?[edit]

Does anybody know if this extensions works properly on MW 1.27? I get some errors.