Flash-Based Audio Player
An embeddable audio player with scrolling ID3 tag display, volume and autoplay control. Takes a file location as a variable and plays it if it exists.
Development Period: August 2006
Tagged as: Open Source, Flash, Audio and Personal.
About
Made in Flash 8, this streaming MP3 player features play, pause and rewind functionality, volume control and ID3 tag display. It also allows the URL of the current track to be copied to the clipboard with a single click.
Technical Details
To use, take a copy of the source files and upload audioplayer.swf to the server on which the MP3 is located. For security reasons, Flash won't import data across domains by default, though Adobe do have a TechNote outlining various workarounds.
Something like the following code can be used to embed the player:
<div align="center"> <embed allowScriptAccess="never" src="http://www.paulherron.net/swf/audioplayer.swf" quality="high" width="295" height="86" name="mp3player" align="center" flashvars="filelocation=/files/file.mp3&autolaunch=false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed> </div>
The code feeds the player two values:
filelocation. An absolute URL for the MP3.autolaunch.truestarts the track as soon as the page loads;falsekeeps it from loading or playing until the play button is clicked.
Links
- Source files. ZIP package, including the player in .fla and .swf formats.
Feed
The portfolio RSS feed is available here.
Project Tags
Show all projects, or just those tagged as:
3D Animation (2)
ACL (2)
CSS (3)
HTML (3)
PHP (2)
Abraxor (2)
Audio (2)
CakePHP (1)
Corporate (5)
Flash (6)
Group-Based (4)
Intranet (1)
JavaScript (1)
jQuery (1)
Large (4)
Management (1)
Object-Oriented (2)
Open Source (2)
Personal (2)
Photoshop (1)
Postgraduate (2)
Redevelopment (1)
Undergraduate (7)
Video (5)
Web Design (10)
