Skip to content

AS3 Playdar: Interact with the Playdar HTTP API and play resolved tracks in your AS3 application

Notifications You must be signed in to change notification settings

lennart/as3playdar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

as3playdar

To use

Copy the as3playdar.swc into the libs directory of your Flex project.

Quick Examples

Basic Resolve and play

import org.playdar.Playdar;
var playdar:Playdar = new Playdar();
playdar.resolve(
    "Massive Attack",
    "Angel",
    function(r:Object):void{
        playdar.play(r.results[0].sid);
    }, 
    function(e:Error):void{
        trace('Error occurred while resolving: '+e.message);
    }
);

Checking if playdar is available

import org.playdar.Playdar;    
var playdar:Playdar = new Playdar();
playdar.status(
    function(r:Object):void{
        trace("Playdar is available and its running version "+r.version);
    },
    function(e:Error):void{
        trace("Playdar is unavailable");
    }
);

About

AS3 Playdar: Interact with the Playdar HTTP API and play resolved tracks in your AS3 application

Resources

Stars

Watchers

Forks

Packages