def Position(self): pos = PLAYER.get_position() / NANOSECOND * MICROSECOND return dbus.Int64(pos)
def Seek(self, offset): position = PLAYER.get_position() / NANOSECOND position += offset / MICROSECOND PLAYER.seek(position)