Field Summary |
public static
| STOP: Number |
| A constant that indicates that the sound should stop playing once it loads
|
|
|
|
Constructor |
public
| MP3Player (
aMediaUrl: String, aSoundHolder: MovieClip)
|
| Constructor.
|
|
Method Summary |
public
| addListener (
aListener: Object
): Void |
|
|
|
public
| broadcastEvent (
status: String
): Void |
| The listeners must implement the "handlePlayer" function which takes two parameters: the slider and the current value of the slider.
|
|
public
| bufferIsFull (
): Void |
| These last functions are required by the IPlayer interface but they are not used for MP3 files.
|
|
public
| close (
): Void |
| Close the player.
|
|
public
| getMediaBytesLoaded (
): Number |
|
|
|
public
| getMediaBytesTotal (
): Number |
|
|
|
public
| getMediaUrl (
): String |
|
|
|
public
| getPlayheadTime (
): Number |
|
|
|
public
| getTotalTime (
): Number |
| If the mp3 media has not completely loaded, then the duration property of the Sound object is not accurate.
|
|
public
| getVolume (
): Number |
|
|
|
public
| initializeVolume (
): Void |
| Set the volume of a new sound to the default volume.
|
|
public
| isSizeChange (
): Boolean |
|
|
|
public
| isSizeSet (
): Boolean |
|
|
|
public
| load (
): Void |
| Load the media without playing it.
|
|
public
| logError (
error: String
): Void |
|
|
|
public
| mediaLoaded (
): Void |
| Called when the media is completely loaded.
|
|
public
| pause (
): Void |
| Stop playback of the media without moving the playhead.
|
|
public
| play (
startingPoint: Number
): Void |
| Play the media starting at the specified starting point.
|
|
public
| playStarted (
): Void |
| This is called by the MediaDisplay object when playback starts.
|
|
public
| playStopped (
): Void |
|
|
|
public
| removeAllListeners (
): Void |
|
|
|
public
| resizeVideo (
): Void |
|
|
|
public
| setMediaUrl (
aUrl: String
): Void |
|
|
|
public
| setPlayheadTime (
aPosition: Number
): Void |
|
|
|
public
| setSeeking (
isSeeking: Boolean
): Void |
| For MP3Player, this is a no-op
|
|
public
| setVolume (
aVol: Number
): Void |
|
|
|
public
| stop (
): Void |
| Stop playback of the media and reset the playhead to zero.
|
|
public
| willStop (
): Boolean |
| This is scoped public so that the MediaDisplay class can access it.
|
|
|
|
|