Dmap.ControlPlayer

g Dmap.ControlPlayer Dmap.ControlPlayer GObject.GInterface GObject.GInterface GObject.GInterface->Dmap.ControlPlayer

Implementations:

None

Methods

cue_clear ()

cue_play (records, index)

next_item ()

now_playing_artwork (width, height)

now_playing_record ()

pause ()

play_pause ()

prev_item ()

Virtual Methods

do_cue_clear ()

do_cue_play (records, index)

do_next_item ()

do_now_playing_artwork (width, height)

do_now_playing_record ()

do_pause ()

do_play_pause ()

do_prev_item ()

Properties

Name

Type

Flags

Short Description

play-state

Dmap.ControlPlayState

r/w

Play state

playing-time

int

r/w

Playing time (ms)

repeat-state

Dmap.ControlRepeatState

r/w

Repeat state

shuffle-state

bool

r/w

Shufle state

volume

int

r/w

Volume

Signals

None

Fields

None

Class Details

class Dmap.ControlPlayer
Bases:

GObject.GInterface

Structure:

Dmap.ControlPlayerInterface

cue_clear()
cue_play(records, index)
Parameters:
  • records ([Dmap.Record]) – a list of records

  • index (int) – an index

next_item()
now_playing_artwork(width, height)
Parameters:
  • width (int) – width

  • height (int) – height

Returns:

artwork for the currently playing record.

Return type:

str

now_playing_record()
Returns:

the currently playing record.

Return type:

Dmap.AvRecord

pause()
play_pause()
prev_item()
do_cue_clear() virtual
do_cue_play(records, index) virtual
Parameters:
  • records ([Dmap.Record]) – a list of records

  • index (int) – an index

do_next_item() virtual
do_now_playing_artwork(width, height) virtual
Parameters:
  • width (int) – width

  • height (int) – height

Returns:

artwork for the currently playing record.

Return type:

str

do_now_playing_record() virtual
Returns:

the currently playing record.

Return type:

Dmap.AvRecord

do_pause() virtual
do_play_pause() virtual
do_prev_item() virtual

Property Details

Dmap.ControlPlayer.props.play_state
Name:

play-state

Type:

Dmap.ControlPlayState

Default Value:

Dmap.ControlPlayState.STOPPED

Flags:

READABLE, WRITABLE

Play state

Dmap.ControlPlayer.props.playing_time
Name:

playing-time

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Playing time (ms)

Dmap.ControlPlayer.props.repeat_state
Name:

repeat-state

Type:

Dmap.ControlRepeatState

Default Value:

Dmap.ControlRepeatState.NONE

Flags:

READABLE, WRITABLE

Repeat state

Dmap.ControlPlayer.props.shuffle_state
Name:

shuffle-state

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Shufle state

Dmap.ControlPlayer.props.volume
Name:

volume

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Volume