Whirled API Documentation
All Packages
|
All Classes
|
Index
|
Frames
No Frames
Interface AudioPlayer
Methods
|
Events
Package
com.threerings.media
Interface
public interface AudioPlayer extends
MediaPlayer
,
flash.events.IEventDispatcher
Implementors
Mp3AudioPlayer
Implemented by audio-playing backends.
Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods
Method
Defined by
getDuration
():Number
Get the duration of the media, in seconds, or NaN if not yet known.
MediaPlayer
getMetadata
():Object
Get metadata, or null if none or not yet available.
MediaPlayer
getPosition
():Number
Get the position of the media, in seconds, or NaN if not yet ready.
MediaPlayer
getState
():int
MediaPlayer
getVolume
():Number
Get the volume, from 0 to 1.
MediaPlayer
pause
():void
Pause the media, if not already.
MediaPlayer
play
():void
Play the media, if not already.
MediaPlayer
seek
(position:Number):void
Seek to the specified position.
MediaPlayer
setVolume
(volume:Number):void
Set the volume, between 0-1.
MediaPlayer
unload
():void
Unload the media.
MediaPlayer
Events
Hide Inherited Events
Show Inherited Events
Event
Summary
Defined by
duration
Dispatched when the total duration of the media is known.
MediaPlayer
error
Dispatched when there's a problem.
MediaPlayer
metadata
Dispatched when media metadata is available, if ever.
MediaPlayer
position
Dispatched periodically as the position is updated, during playback.
MediaPlayer
state
Dispatched when the state of the mediaplayer changes, usually in response to commands such as play/pause, etc.
MediaPlayer
Copyright © 2007-2009 Three Rings Design, Inc.