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.5 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. Special thanks to Elran Oded for the caching code and Jeroen van Gorkum for cleaning up after me!

Download

Download Anarchy Media Player 2.5.1:
Latest zip for WordPress 2.9+ (88kb)
Standalone Javascript for non-WP sites (52kb)

Extras:
Plugin-Output-Cache recommended!
Flash fla and Photoshop templates (412kb)

Installation

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.

Usage

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.

menu_anarchy.jpg

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.mov

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!


Site by