I currently working on controlling VLC player via DBUS. VLC implements MPRIS. There is a method which is named SetPosition of the MPRIS to set the position of the player. It has the following signuture.
SetPosition (o: TrackId, x: Position)
I understand the second argument, but which value should be set for the first argument ? How to set the position of the current video on the player ?
What is the syntax of the SetPosition with dbus-send command ?
The information should be available from the
Metadataproperty as thempris:trackidfield.https://specifications.freedesktop.org/mpris-spec/2.2/Player_Interface.html#Property:Metadata
Using the Totem player it didn't give me a
trackidin theMetadataSo I used
/as the object path which worked:If I queried the player in my Firefox session then it gave the following for
Metadatawhich did include atrackidobject path: