| Top |
| gchar * | pt_media_info_get_album () |
| GStrv | pt_media_info_get_artist () |
| gchar * | pt_media_info_get_title () |
| gchar * | pt_media_info_dump_caps () |
| gchar * | pt_media_info_dump_tags () |
A read-only object that is owned by PtPlayer and provides metadata for the currently playing track, like title or artist.
Call pt_player_get_media_info() to obtain the object and query
the current track’s metadata.
Whenever metadata changes, a signal “media-info-changed” is emitted.
gchar *
pt_media_info_get_album (PtMediaInfo *self);
Gets the album’s name.
Since: 4.3
GStrv
pt_media_info_get_artist (PtMediaInfo *self);
Gets the track’s artists.
Since: 4.3
gchar *
pt_media_info_get_title (PtMediaInfo *self);
Gets the track’s title.
Since: 4.3
gchar *
pt_media_info_dump_caps (PtMediaInfo *self);
Returns a string with all available GstCaps in the current track, even those without a getter method in PtMediaInfo. This is meant for debug purposes.
Since: 4.3
gchar *
pt_media_info_dump_tags (PtMediaInfo *self);
Returns a string with all available GstTags in the current track, even those without a getter method in PtMediaInfo. This is meant for debug purposes.
Since: 4.3
“media-info-changed” signalvoid user_function (PtMediaInfo *self, gpointer user_data)
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.
self |
the player emitting the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last