Controls for Deezer music player.
Heavily inspired by 'hs.spotify', credits to the original author.
| Signature | hs.deezer.state_paused |
|---|---|
| Type | Constant |
| Description | Returned by |
| Signature | hs.deezer.state_playing |
|---|---|
| Type | Constant |
| Description | Returned by |
| Signature | hs.deezer.state_stopped |
|---|---|
| Type | Constant |
| Description | Returned by |
| Signature | hs.deezer.displayCurrentTrack() |
|---|---|
| Type | Function |
| Description | Displays information for current track on screen Parameters:
Returns:
|
| Signature | hs.deezer.ff() |
|---|---|
| Type | Function |
| Description | Skips the playback position forwards by 5 seconds Parameters:
Returns:
|
| Signature | hs.deezer.getCurrentAlbum() |
|---|---|
| Type | Function |
| Description | Gets the name of the album of the current track Parameters:
Returns:
|
| Signature | hs.deezer.getCurrentArtist() |
|---|---|
| Type | Function |
| Description | Gets the name of the artist of the current track Parameters:
Returns:
|
| Signature | hs.deezer.getCurrentTrack() |
|---|---|
| Type | Function |
| Description | Gets the name of the current track Parameters:
Returns:
|
| Signature | hs.deezer.getPlaybackState() |
|---|---|
| Type | Function |
| Description | Gets the current playback state of deezer Parameters:
Returns:
|
| Signature | hs.deezer.getPosition() |
|---|---|
| Type | Function |
| Description | Gets the playback position (in seconds) in the current song Parameters:
Returns:
|
| Signature | hs.deezer.getVolume() |
|---|---|
| Type | Function |
| Description | Gets the deezer volume setting Parameters:
Returns:
|
| Signature | hs.deezer.isPlaying() |
|---|---|
| Type | Function |
| Description | Returns whether deezer is currently playing Parameters:
Returns:
|
| Signature | hs.deezer.isRunning() |
|---|---|
| Type | Function |
| Description | Returns whether deezer is currently open. Most other functions in hs.deezer will automatically start the application, so this function can be used to guard against that. Parameters:
Returns:
|
| Signature | hs.deezer.next() |
|---|---|
| Type | Function |
| Description | Skips to the next deezer track Parameters:
Returns:
|
| Signature | hs.deezer.pause() |
|---|---|
| Type | Function |
| Description | Pauses the current deezer track Parameters:
Returns:
|
| Signature | hs.deezer.play() |
|---|---|
| Type | Function |
| Description | Plays the current deezer track Parameters:
Returns:
|
| Signature | hs.deezer.playpause() |
|---|---|
| Type | Function |
| Description | Toggles play/pause of current deezer track Parameters:
Returns:
|
| Signature | hs.deezer.previous() |
|---|---|
| Type | Function |
| Description | Skips to previous deezer track Parameters:
Returns:
|
| Signature | hs.deezer.rw() |
|---|---|
| Type | Function |
| Description | Skips the playback position backwards by 5 seconds Parameters:
Returns:
|
| Signature | hs.deezer.setPosition(pos) |
|---|---|
| Type | Function |
| Description | Sets the playback position in the current song Parameters:
Returns:
|
| Signature | hs.deezer.setVolume(vol) |
|---|---|
| Type | Function |
| Description | Sets the deezer volume setting Parameters:
Returns:
|
| Signature | hs.deezer.volumeDown() |
|---|---|
| Type | Function |
| Description | Reduces the volume by 5 Parameters:
Returns:
|
| Signature | hs.deezer.volumeUp() |
|---|---|
| Type | Function |
| Description | Increases the volume by 5 Parameters:
Returns:
|