Package org.mpris

Class Position

java.lang.Object
org.mpris.Position

public class Position extends Object
Argument of the SetPosition method
  • Constructor Details

    • Position

      public Position(org.freedesktop.dbus.DBusPath path, Long position)
      Parameters:
      path - The currently playing track's identifier. /org/mpris/MediaPlayer2/TrackList/NoTrack is not a valid value for this argument.
      position - Track position in microseconds, between 0 and the track length.
  • Method Details

    • getPath

      public org.freedesktop.dbus.DBusPath getPath()
      Returns:
      The identifier of the track whose position should be set.
    • getPosition

      public Long getPosition()
      Returns:
      Time in microseconds