TempoLite (AS3) - Small Efficient Media Library
- Compatibility: Flash Player 9 and later (ActionScript 3.0)
- File Size: About 8Kb - 33Kb
- Change Log
Download Now (3.0.4)
What's New
- Updated NetStreamPlayer to 3.0.4
- Updated SoundPlayer to 3.0.4
- Updated ImagePlayer to 1.0.3
- API Change - currentPercent is now a number from 0 - 1
- API Change - seekPercent now accepts a number from 0 - 1
Description
TempoLite 3.0 is a complete refactoring of the code. I've finally made it modular enough that you can pick and choose which components you need at the time. If you only want to play an mp3, then just use the SoundPlayer. If you need to play a video use the NetStreamPlayer. If you're not sure if you're going to be loading an mp3 or a video, use TempoLite and it will play the media with the correct player. By using only what you need you can keep filesize down. TempoLite (1.0) is now the core of Tempo, with Tempo expanding upon TempoLite's capabilities. With that said, TempoLite focuses on playing and managing media, nothing else. Any UI elements would be handled by the user or by Tempo.
TempoLite is no longer a component you drag into the library. It is now purely just a set of calsses you copy to your project folder. I've found this is simpler to test and update than needing to update something in the FLA constantly.
Competitors
This is a list of other known Flash media players currently out. While some media players may seem fancy or elaborate TempoLite's goal is to be small, and efficient. Below is a list of comparable players with similar capabilities and file sizes:
- Wimpy Wasp 1.0.116 : 64kb - Plays only one video/song, no play list (Not Free)
- Wimpy Button 4.0.4 : 30kb - Plays only one song, no play list (Not Free)
- video.Maru 3.5b : 28kb
- TempoLite : 15kb
This site requires atleast version 9. If you would like to continue anyways, please click here to bypass.
This Wimpy Button styled TempoLite demo is only 8Kb (version 2.0 was 20kb but allowed for playlista M4A and videos), compared to the 30Kb for the actual Wimpy Button.
Usage
Item Object
An item object is used for handling a single item. You pass an item object to add audio or video to the play list. When you try to retrieve audio or video from the play list, it is returned as an item object. Below is the format of an item object :
{title: "My Song", length: "100", url: "mySong.mp3", extOverride: "m4a"}
If no title is passed, it will be set to "". If no length is passed, it will be set to -1. If extOverride isn't passed, Tempo will get that last three letters of the file name to guess the file format.
Support Video Formats
Below is a list of the supported video formats. This is basically a run down of the videos Flash can play.
- flv
- mp4
- m4v
- 3gp
- mov
- f4v
- f4p
- f4b
Support Audio Formats
Below is a list of the supported audio formats, this is basically a run down of the sounds Flash can play.
- m4a
- f4a
- mp3
Support Play List Formats
You can pass the following play list file types to Tempo. For each file type (if XML based) is a list of the corresponding tags as they relate to the Item Object described above.
- ASX
- XSPF
- M3U
- ATOM
- <title> = Title
- <media:group><media:content url="value"> = URL
- <duration> = Length
- Spec
Documentation
View v2.0 ASDocs | View v3.0 ASDocsChange Log
TempoLite 3.0.5 for AS3 (unreleased)
- Updated NetStreamPlayer to 3.0.5
- Updated SoundPlayer to 3.0.5
- Updated ImagePlayer to 1.0.4
TempoLite 3.0.4 for AS3 (April, 30, 2009)
- Updated NetStreamPlayer to 3.0.4
- Updated SoundPlayer to 3.0.4
- Updated ImagePlayer to 1.0.3
- API Change - currentPercent is now a number from 0 - 1
- API Change - seekPercent now accepts a number from 0 - 1
TempoLite 3.0.3 for AS3 (April, 22, 2009)
- Updated NetStreamPlayer - NetStreamPlayer now correctly dispatches this event
- Updated NetStreamPlayer - NetStreamPlayer now dispatches a STATUS event when stopping
TempoLite 3.0.2 for AS3 (April, 2, 2009)
- Updated LOAD_COMPLETE - loadCurrent and loadTotal are now more accurate
- API Change - loadCurrent and loadTotal are now typed to uint
TempoLite 3.0.1 for AS3 (March, 31, 2009)
- API Change - load() and seek() are now typed to * instead of Object
TempoLite 3.0 for AS3 (Unreleased)
- Complete refactoring - Major overhaul with some slight API changes.
- API Change - unloadMedia() is now unload().
- API Change - loadMedia() is now load().
- API Change - bufferTime is now buffer.
- API Change - AudioManager and VideoManager are now SoundPlayer and NetStreamPlayer.
- API Change - IMediaManager is now IMediaPlayer.
- API Change - PlayListManager is no longer used and has been integrated into TempoLite.
- API Change - Can now load by itemObject or by url string.
- Modular - You can now mix and match what playlist formats can be used or what type of media it can play.
- ImagePlayer - Can now 'play' images.
- RTMPPlayer - Can now stream media via Flash Media Server.
TempoLite 2.1.1 for AS3 (unreleased)
- Changed unloadMedia() to just unload()
- Changed bufferTime to just buffer
TempoLite 2.1 for AS3 (January 28, 2009)
- Re-organized class structure. AudioManager and VideoManager are now SoundPlayer and NetStreamPlayer
- Re-organized class structure. IMediaManager is now IMediaPlayer
- Re-organized class structure. PlayListManager is now under the managers package
- Fixed autoStart, items would load paused but think they were playing. This time with the SoundPlayer
TempoLite 2.0.7 for AS3 (January 22, 2009)
- Added PLAY_PROGRESS event dispatch after seek
- Removed traces
- Added STATUS event, dispatched whenever the isPause, isPlaying, isReadyToPlay properties change.
- Fixed autoStart, items would load paused but think they were playing.
TempoLite 2.0.6 for AS3 (January 12, 2009)
- Added leftToLeft property
- Added leftToRight property
- Added rightToLeft property
- Added rightToRight property
- Added pan property
- Changed stringToTime and timeToString into static methods
TempoLite 2.0.5 for AS3 (unreleased)
- Fixed autoStart, pause now dispatches a Progress and Change event
TempoLite 2.0.4 for AS3 (unreleased)
- Added CUE_POINT contstant
TempoLite 2.0.3 for AS3 (October 24, 2008)
- Fixed getTimeCurrent, getTimeTotal, getTimeLeft to return time as milliseconds and not a decimal number.
TempoLite 2.0.2 for AS3 (October 24, 2008)
- Changed how time is retrieved. Time is returned in milliseconds, must use conversion functions to get strings.
- Added stringToTime()
- Updated timeToString()
TempoLite 2.0.1 for AS3 (October 06, 2008)
- Fixed Video MetaData handler
- Fix playlist file type handling
- Fixed null playlist handling
TempoLite 2.0 for AS3 (October 03, 2008)
- Removed PureMVC framework
- Dropped compiled size by almost 10Kb (23kb -> 15kb)
- Updated XSPF parser
- Updated ASX parser
- Added ATOM as a playlist type
- Removed B4S as a playlist type
- Removed PLS as a playlist type
- Added streaming video capability
TempoLite 1.1 for AS3 (September 19, 2008)
- Added file extension override
- Fixed pause bug
- Updated to PureMVC AS3 Multicore 1.0.5
TempoLite 1.0.3 for AS3 (June 26, 2008)
- Updated to Tempo 1.0.3
TempoLite 1.0.2 for AS3 (June 26, 2008)
- Updated to Tempo 1.0.2
- Fixed int comparison bug in removeItem, addItem, and play. Introduced in 1.0.1
TempoLite 1.0.1 for AS3 (June 26, 2008)
- Updated to Tempo 1.0.1
- Fixed issue of adding/removing item from playlist at index '0'
- Added events NEXT and PREVIOUS
- Playlist will automatically update with metadata as it's received
- loadMedia method allows for autoStart to be set
TempoLite 1.0 for AS3
- Updated to Tempo 1.0.0
- Changed how the repeat property is handled. Instead of a boolean, it now passes a string. Accepted values are TempoLite.REPEAT_TRACK, TempoLite.REPEAT_ALL, and TempoLite.REPEAT_NONE.
TempoLite 0.9.5 for AS3
- Updated to Tempo 0.9.5
- Added PLAY_START event
- Added version property
TempoLite 0.9.4 for AS3
- Updated to Tempo 0.9.4
- Added isPause property
- Added boolean as a possible arguement for pause()
TempoLite 0.9.3 for AS3
- Updated to Tempo 0.9.3
TempoLite 0.9.1 for AS3
- Port of Tempo 0.9.1