Method

PhoshMprisDBusMediaPlayer2Playerget_metadata

Declaration [src]

GVariant*
phosh_mpris_dbus_media_player2_player_get_metadata (
  PhoshMprisDBusMediaPlayer2Player* object
)

Description [src]

Gets the value of the Metadata” D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object was constructed. Use phosh_mpris_dbus_media_player2_player_dup_metadata() if on another thread.

This method is not directly available to language bindings.

Return value

Type: GVariant

The property value or NULL if the property is not set. Do not free the returned value, it belongs to object.

The data is owned by the instance.
The return value can be NULL.