Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Audio Extension - Help
I'd like to use the same concept as is present in the current ExtentedTextFormatter to convert a custom tag I have into OTHER html.
For example.
I want to have a tag like this. <mp3 src="my-music.mp3" title="my-song-title">
This is nice and simple for the the users to remember.
I then want the extension to come through and wrap some object and embed code around that with the source of the object being something like this:
player.swf?mp3=my-music.mp3&title=my-song-title...
I really have no idea how to do this, so any guidance will be appreciated.
0
This discussion has been closed.
Comments
I think this regular expression should do the trick, although I am not entirely sure how to use it :P
preg_replace('/\<youtube\>([a-zA-z0-9]+?)\<\/youtube\>/', '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/$1"></param><embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" width="425" height="350"></embed></object>', $String); return $String;
I would, however, like to have this as an extension like the ExtentedTextFormatter - as a standalone extension - rather than part of the BBCode StringFormatter.
I would be using FULL URL's with the flash program I have, so, I would be giving it something like this: http://my-domain/some-music.mp3, instead of the "sdaqweo1fe" way of this solution, where only the move name is used, not a ful url.
I am sorry for the vagueness of these requests, but I have never used Regular Expressions before and php is not my strong suit. I am a designer by trade.
Perhaps something more like this script might be more suitable:
http://www.jeroenwijering.com/?item=Flash_MP3_Player
With these versions you can change the volume at once when creating the link but there are no options to change it while playing. It was intended to be a simple, usable, well-designed and quite light mp3 player, neither the lightest one nor Concorde cabin. :-)
Adding a volume slider introduced a few problems in dewplayer-vol (1.5) like the need to stop the sliders from going to -300% or +500% and added a kB so he wasn't satisfied (but it does work). In case you need something more complex, it's not the best choice, mainly because the dewplayer #1 advantage is simplicity.
(his work is under CC-license attribution and no derivatives work, just in case)
A few more link to wonderful blindtests dew created with its dewplayer, in case you would want fresh ideas on blogs/forums: classical and movie themes blindtests (for the latter, 4, 6 and 8 are in french)
The one Felipe links to is much better.