Parlatype.MediaInfo

g GObject.Object GObject.Object Parlatype.MediaInfo Parlatype.MediaInfo GObject.Object->Parlatype.MediaInfo

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

dump_caps ()

dump_tags ()

get_album ()

get_artist ()

get_title ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Name

Short Description

media-info-changed

Emitted when the player has updated the metadata of the current stream.

Fields

Inherited:

GObject.Object (1)

Class Details

class Parlatype.MediaInfo(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Parlatype.MediaInfoClass

dump_caps()
Returns:

multiline string with all caps or None. After use free with GLib.free().

Return type:

str

Returns a string with all available GstCaps in the current track, even those without a getter method in Parlatype.MediaInfo. This is meant for debug purposes.

New in version 4.3.

dump_tags()
Returns:

multiline string with all tags or None. After use free with GLib.free().

Return type:

str

Returns a string with all available GstTags in the current track, even those without a getter method in Parlatype.MediaInfo. This is meant for debug purposes.

New in version 4.3.

get_album()
Returns:

the album’s name or None.

Return type:

str or None

Gets the album’s name.

New in version 4.3.

get_artist()
Returns:

the tracks’s artists as a None-terminated array or None.

Return type:

[str] or None

Gets the track’s artists.

New in version 4.3.

get_title()
Returns:

the track’s title or None.

Return type:

str or None

Gets the track’s title.

New in version 4.3.

Signal Details

Parlatype.MediaInfo.signals.media_info_changed(media_info)
Signal Name:

media-info-changed

Flags:

RUN_LAST

Parameters:

media_info (Parlatype.MediaInfo) – The object which received the signal

Emitted when the player has updated the metadata of the current stream. This will typically happen just after opening a stream.

Call pt_media_info_get_<artist|title|etc.>() to query the updated metadata.