| Platform | Since |
|---|---|
| iPhone | 1.4.0 |
| iPad | 1.4.0 |
The MusicPlayer instance returned from Titanium.Media.createMusicPlayer. This object represents a music controller.
| Name | Summary |
|---|---|
| addEventListener |
Adds the specified callback as an event listener for the named event. |
| fireEvent |
Fires a synthesized event to any registered listeners. |
| getCurrentPlaybackTime |
Gets the value of the currentPlaybackTime property. |
| getNowPlaying |
Gets the value of the nowPlaying property. |
| getPlaybackState |
Gets the value of the playbackState property. |
| getRepeatMode |
Gets the value of the repeatMode property. |
| getShuffleMode |
Gets the value of the shuffleMode property. |
| getVolume |
Gets the value of the volume property. |
| pause |
pause playback |
| play |
begin playback |
| removeEventListener |
Removes the specified callback as an event listener for the named event. |
| seekBackward |
seek backward in the currently playing media |
| seekForward |
seek forward in the currently playing media |
| setCurrentPlaybackTime |
Sets the value of the currentPlaybackTime property. |
| setNowPlaying |
Sets the value of the nowPlaying property. |
| setPlaybackState |
Sets the value of the playbackState property. |
| setQueue |
set the media queue |
| setRepeatMode |
Sets the value of the repeatMode property. |
| setShuffleMode |
Sets the value of the shuffleMode property. |
| setVolume |
Sets the value of the volume property. |
| skipToBeginning |
skip to the beginning of the currently playing media |
| skipToNext |
skip to the next media in the queue |
| skipToPrevious |
skip to the previous media in the queue |
| stop |
stop playback |
| stopSeeking |
end a seek operation |
| Name | Type | Summary |
|---|---|---|
| currentPlaybackTime | Number |
the current point in song playback |
| nowPlaying | Object |
an Item object which indicates the currently playing media |
| playbackState | Number |
the playback state; one of |
| repeatMode | Number |
the repeat setting; one of |
| shuffleMode | Number |
the shuffle setting; one of |
| volume | Number |
a value between 0.0 and 1.0 indicating the volume level for the music player |
| Name | Summary |
|---|---|
| playingChange |
the currently playing media changed |
| stateChange |
the playback state changed |
| volumeChange |
the volume changed |