Anarchy Media Player
Download | Installation | Usage | Support
Well it’s like this - I needed a way to let users on the An-archos network add audio and video … easily. I figure the lower the entry skills threshold for doing this sort of thing then the more of it there’ll be, and there’s no real reason why the internet shouldn’t be completely awash with audiovisual stuff, which it kinda is but … not.
Anarchy Media Player 2.0 for WordPress, WordPressMu and Standalone Javascript will play any simple href link to mp3, flv, Quicktime mov, mp4, m4v, m4a, m4b, 3gp as well as Windows wmv, avi and asf files, in the appropriate player on your web page. The WordPress versions also add buttons to the Rich Text Editor for embedding Flash swf and Director dcr movies as well as YouTube, Google Video, iFilm, DailyMotion, Revver, Metacafe, MySpace, Apple iTunes iMix, and GoEar players.
All the Flash, Quicktime and Windows Media object/embed codes are handled by Javascript due to the recent changes in the way Microsoft’s Explorer 7+ ActiveX controls handle embedded media. This update to Anarchy Media Player was developed on WordPress MultiUser server which tracks WordPress 2.1+ development so it should be future proof on that platform as well.
Acknowledgments: I’d like to make it very clear that all I’ve done, in the spirit of open source software, is hack bits of code from the good work of other people into a single Javascript and PHP plugin. Anarchy Media Player is based on a hack of the excellent Del.icio.us mp3 Playtagger javascript as used in Taragana’s Del.icio.us mp3 Player Plugin and using Jeroen Wijering’s Flv Player with Tradebit modifications and the EMFF inspired WP Audio Player. Flash embeds are courtesy of Michael Bester’s Kimili Flash Embed utilising Geoff Stearns’ excellent standards compliant Flash detection and embedding JavaScript while Rich Text Editor buttons in the standard WordPress version are via buttonsnap.php from Red Alt. The whole is distributed under the GNU General Public License so feel free to do as I did and hack away to your hearts content.
Download the Anarchy Media Player 2.0:
Latest zip for WordPress 2.0+ (82kb)
Latest zip for WPMu (83kb)
Standalone Javascript for non-WP sites (52kb)
Extras:
Flash fla and Photoshop templates (412kb)
Unzip the anarchy_media folder into wp-content/plugins and activate it … done! WPMu unzip into muplugins - done!
For the Standalone Javascript on non-WP pages edit the anarchy_url variable in anarchy.js then you can manually add the script to your web page header:
<script type=”text/javascript” src=”http:// PATH TO PLAYER DIRECTORY /anarchy_media/anarchy.js”></script>
You don’t need WordPress to use the Anarchy Media Player for simple href links since it’s all in the Javascript, I’ve even got this playing on a couple of MediaWiki’s, anywhere you can embed the script you can use the player.
Various options are available in config.php, including enabling both the Director editor button and wysiwyg extensions to the rich text editor (latter disabled by default as it may conflict with other wysiwyg plugins in some installs). Config.php also allows download links to be turned on or off, restrict use of the script to your domains, change the colour styling of the mp3 player, set site Quicktime version, video player sizes and so on.
To finish off installation you can use the source files to edit the images and flash players according to your website style.
Simple href links: Upload your mp3, flv, mov, mp4, m4v, m4a, m4b, 3gp, wmv, avi or asf file via the WordPress editor’s upload browser then “send to editor” - or make a hypertext link to any external file on the web - and you’re done!
Rich text editor: Flash swf (including Google Video, YouTube etc., players via the “A” for anarchy button) or Director dcr use the respective rich editor buttons. To embed the various media players supported by AMP enter the full HTTP address (url) to your YouTube, Google Video, iFilm, Revver, Metacafe, MySpace or GoEar web page. For DailyMotion video and Apple iTunes iMixes just copy and paste the code from their embeddable players.

Web devs: The RTE buttons are basically a front end for Kmil Flash Embed and its Javascript handler SWFObject. The Kmil tags in WP, and SWFObject javascript in html, provide a very flexible framework for embedding swf files including multiple fvars.
So anyways … for all the href linked files such as mp3:
<a href=”http://PATH TO AN MP3/audio.mp3″>Download Link</a> Ghost Troop - Captain Eric May 666 Red Alert
becomes:
Download Link Ghost Troop - Captain Eric May 666 Red Alert
while for m4a:
abstract_gulag.m4a Enargeia - Abstract Gulag
Any Flash flv or Quicktime mov video link such as:
<a href=”PATH TO VIDEO/video.flv”>Download Link</a> Jeff King on 911 Demolition
for FLV becomes:
Download Link
Jeff King on 911 Demolition
And for Quicktime:
73p comet flyby
Here’s a Google Video via the Rich Text Editor buttons:
An iTunes iMix:
And here’s a Flash banner:
That’s about it!
AMP SUPPORT: I’ve closed the comments now but feel free to join the support forums if you need help or have a bug report or you’ve cleaned up/added to my coding.
For common problems there’s also the AMP FAQ.
Cheers,
Zeug
June 21st, 2007 at 3:19 pm
[…] I have enable one such plugin for you all. This plugin allows you to embed just about any web video, audio file, or multimedia file you find or create. The plugin is called the Anarchy Media Player . To use this all you need to do is upload a video or media file and it will automatically create the player interface for you. […]
June 15th, 2007 at 3:15 pm
[…] Ik so far this is all pretty simpe nothing too it. Befor I get to editing this site adding categories & pages, editing blogroll, and picking a new template, the first thing i want to do is have video links embedded in the site, i tried that in the post And one last thing for now before but it links to another page then you have to click on the file so its just not the same. I searched for “enbedded video wordpress”, google of course, and found a very fitting plugin - Anarchy Media Player and that sounds like just what i would be interested in. It can be downloaded from here http://an-archos.com/?page_id=415&cp… is a simple php simple script that you unzip and activate simple enough, lets see if it works: […]
February 17th, 2007 at 11:29 pm
Anarchy Help Forum Open
I’ll be closing these comments in a bit and all help requests can now go to the new AMP help forum.