RB.StreamingSource

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Box Gtk.Box RB.DisplayPage RB.DisplayPage Gtk.Box->RB.DisplayPage Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Box Gtk.Orientable->Gtk.Box Gtk.Widget->Gtk.Container RB.Source RB.Source RB.DisplayPage->RB.Source RB.StreamingSource RB.StreamingSource RB.Source->RB.StreamingSource

Subclasses:

None

Methods

Inherited:

RB.Source (33), RB.DisplayPage (12), Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

get_progress ()

set_streaming_album (album)

set_streaming_artist (artist)

set_streaming_title (title)

Virtual Methods

Inherited:

RB.Source (27), RB.DisplayPage (12), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

RB.Source (10), RB.DisplayPage (5), Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)

Child Properties

Inherited:

Gtk.Box (5)

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

RB.Source (3), RB.DisplayPage (2), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Fields

Inherited:

RB.Source (3), RB.DisplayPage (2), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

parent

RB.Source

r

Class Details

class RB.StreamingSource(*args, **kwargs)
Bases:

RB.Source

Abstract:

No

Structure:

RB.StreamingSourceClass

get_progress()
Returns:

text:

returns buffering status text

progress:

returns buffering progress fraction

Return type:

(text: str, progress: float)

Provides status text and progress fraction suitable for use in a streaming source’s rb_source_get_status method.

set_streaming_album(album)
Parameters:

album (str) – the new streaming song album name

Updates the streaming song album name. Call this when an updated streaming song album name is received from the stream.

set_streaming_artist(artist)
Parameters:

artist (str) – the new streaming song artist name

Updates the streaming song artist name. Call this when an updated streaming song artist name is received from the stream.

set_streaming_title(title)
Parameters:

title (str) – the new streaming song title

Updates the streaming song title. Call this when an updated streaming song title is received from the stream.