Extension talk:FlashMP3

Add to toolbar
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 users 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 " in the template, and used that template in an article. However,   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)


 * Can you explain what you mean by that? I'm not really coming to grips with it. --Clausekwis 16:28, 2 October 2009 (UTC)

XSS Vulnerability
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)

Syntax
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?
Could somebody please tell me if there's an option to hide the player, or would that require some additional coding? 70.129.136.24


 * 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?
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
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?

 * 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?
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 filename.mp3 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 so it would automatically enter the following: filename.mp3||bg=0xFFCB1F|leftbg=0xFFCB1F|rightbg=0xFFCB1F, 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)
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)

Error Opening File
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)

Midiawiki won't recognise mp3
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
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)