ActiveSfFlashMP3Player

Table of content :

How to install Flash MP3 Player for SF-Active

How to install... in progress by MattToups

This will provide a small player application for the flash plug-in which is nearly universal these days. It will play mp3 files only. (We should do something for playing ogg files, but flash will not play ogg files. Wikipedia has a player for ogg using Java, I think.)

Example: http://neworleans.indymedia.org/news/2007/08/10888.php

Copy files

There are two new files you will need, the flash application (player.swf) and some javascript code (audio-player.js). These should go in the webroot, /im/ is a good directory (and is what is assumed by the php patch below).

These are originally taken from a Wordpress plugin

See that page for info on sample rates (the chipmunk effect), color schemes, and more.

Patch article_class.inc

This patch is against article_class.inc in the 0.94 release of SF-Active.

or use this text in the set_mime_type method of Article class:

Customize

You will should change neworleans.indymedia.org in the text above to your site's URL (this only affects the 'embed' box, actually). The /im/ directory is good for static stuff like this.

You will probably want to change the colors and other stuff in the FlashVars section. See here.

Use

Regenerating old articles

This won't apply to older mp3 uploads until the article is regenerated in the article admin section.

Embedding in other sites

see the text in the "Embed" box

A "What is this?" or howto for users

A little javascript/css thing that pops up with an explanation of how to use the player would be good ... who can write/make such a thing?

How to seek, how to embed, what is required ... etc

Translations?

We could probably use translations of the text of stuff like "player" and "embed" ... and any help text that gets written.
Topic attachments
I Attachment Action Size Date Who Comment
article_class.playerswf.diffdiff article_class.playerswf.diff manage 2 K 13 Jan 2008 - 17:18 UnknownUser patch to article_class.inc for flash mp3 player
audio-player.jsjs audio-player.js manage 791 bytes 13 Jan 2008 - 17:19 UnknownUser javascript function for audio player
player.swfswf player.swf manage 5 K 13 Jan 2008 - 17:19 UnknownUser flash player app
Topic revision: r1 - 13 Jan 2008, MattToups
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback