Remote control service

The remote control service allows you to remote control media playback on the MyTunesRSS computer. You can use the remote API even if no remote control is available on the server. The server simply does nothing when called in this case.

loadPlaylist

RemoteControlService.loadPlaylist(String playlistId)

Load a playlist into the remote player.

loadAlbum

RemoteControlService.loadAlbum(String albumName)

Load an album into the remote player.

loadArtist

RemoteControlService.loadArtist(String artistName, boolean fullAlbums)

Load all tracks of an artist into the remote player. If "fullAlbums" is set to "true", all tracks of all albums containing at least one track of the specified artist are loaded.

loadGenre

RemoteControlService.loadGenre(String genreName)

Load all tracks of a genre into the remote player.

loadTrack

RemoteControlService.loadTrack(String trackId)

Load a single track into the remote player.

loadTracks

RemoteControlService.loadTracks(String[] trackIds)

Load a number of tracks into the remote player.

clearPlaylist

RemoteControlService.clearPlaylist()

Remove all tracks from the remote player's playlist.

play

RemoteControlService.play(int index)

Start playback of the track with the specified index on the remote player. The index is 0-based. A value of -1 continues playback of a previously paused track (if any).

pause

RemoteControlService.pause()

Pause playback of the currently played track.

stop

RemoteControlService.stop()

Stops playback of the currently played track and clears it, i.e. the currently played track cannot be continued like after a pause call.

next

RemoteControlService.next()

Start playback of the next track if one is currently playing.

prev

RemoteControlService.prev()

Start playback of the previous track if one is currently playing.

jumpTo

RemoteControlService.jumpTo(int percentage)

Jump to a position in the currently playig track. The position is specified as the percentage, i.e. 0 jumps to the start of the track, 50 to the middle and 100 to end end.

getCurrentTrackInfo

RemoteControlService.getCurrentTrackInfo()

Get information like the length of the current track. The track information is retrieved from the remote media player, not what the track's meta information. Returns NULL if no track is currently playing.

setVolume

RemoteControlService.setVolume(int percentage)

Sets the playback volume as a percentage value, i.e. 0 mutes the sound and 100 is maximum volume.

setFullScreen

RemoteControlService.setFullScreen(boolean fullScreen)

If an audio track is playing, this function does nothing. For a video track it switches to fullscreen (if "fullScreen" is "true") or window (if "fullScreen" is "false") mode.

shuffle

RemoteControlService.shuffle()

Stop playback and shuffle tracks in the current playlist.

getPlaylist

RemoteControlService.getPlaylist()

Gets the tracks of the playlist.

getTrack

RemoteControlService.getTrack()

Gets the specified track.