RdioPlayer

class rdiosock.player.RdioPlayer(sock)[source]

Class Constants

REPEAT_ALL
REPEAT_ONE
REPEAT_NONE

Fields

Un-changeable fields updated via PubSub

last_song_played

rdiosock.objects.queue.RdioQueue

Last song played

last_song_play_time
last_source_played

rdiosock.objects.source.RdioSource

Last source played

on_song_changed

rdiosock.utils.EventHook

Song changed event

player_state

rdiosock.objects.player_state.RdioPlayerState

Current Rdio player state

queue

rdiosock.objects.queue.RdioQueue

Current Rdio player state

Properties

Changeable properties updated and changed via PubSub

volume

float

Player volume (0.0 - 1.0)

NOTE: This property sends pubsub messages

shuffle

bool

Player shuffle mode

NOTE: This property sends pubsub messages

repeat

RdioPlayer.REPEAT_ALL, RdioPlayer.REPEAT_ONE, RdioPlayer.REPEAT_NONE

Player repeat mode

NOTE: This property sends pubsub messages

position

int

Player position in seconds

NOTE: This property sends pubsub messages

Methods

update(callback=None)[source]

Force a player state and queue update

get_playback_info(key, manual_play=True)[source]

Get track playback info

Parameters:key (str) – Track Key
toggle_pause()[source]
toggle_shuffle()[source]
play()[source]
pause()[source]
previous()[source]
next()[source]
next_source()[source]