playIndex method

Future<void> playIndex(
  1. String queueId,
  2. dynamic index, {
  3. int seekPosition = 0,
  4. bool fadeIn = false,
})

Play item at index (or item_id) X in queue.

Implementation

Future<void> playIndex(String queueId, dynamic index, {int seekPosition = 0, bool fadeIn = false}) async {
  await _client.sendCommand(
    'player_queues/play_index',
    args: {'queue_id': queueId, 'index': index, 'seek_position': seekPosition, 'fade_in': fadeIn},
  );
}