doSetPosition method

Future<DBusMethodResponse> doSetPosition(
  1. String trackId,
  2. int position
)

Implementation of org.mpris.MediaPlayer2.Player.SetPosition()

Implementation

Future<DBusMethodResponse> doSetPosition(String trackId, int position) async {
  _positionStreamController.add(Duration(microseconds: position));
  return DBusMethodSuccessResponse([]);
}