Git Product home page Git Product logo

tempolite-as's Introduction

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:

There was an embedded Flash demo of TempoLite styled as a Wimpy Button

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
    • <title> = Title
    • <ref> or <base> = URL
    • <duration> = Length
    • Example
    • Spec
  • XSPF
    • <title> = Title
    • <location> = URL
    • <duration> = Length
    • Example
    • Spec
  • M3U
  • ATOM
    • <title> = Title
    • <media:group><media:content url="value"> = URL
    • <duration> = Length
    • Spec

Documentation

View ASDocs

tempolite-as's People

Contributors

gmariani avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.