Method

ValentMediaPlayerget_metadata

unstable since: 1.0

Declaration [src]

GVariant*
valent_media_player_get_metadata (
  ValentMediaPlayer* player
)

Description [src]

Get the metadata of the active media items.

Implementations should typically have an entry for the mpris:length field. Other fields generally supported by KDE Connect clients include mpris:artUrl, xesam:artist, xesam:album and xesam:title.

Available since: 1.0

Return value

Type: GVariant

A GVariant of type a{sv}.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.