replay method

Future<void> replay(
  1. Uint8List recordedSequence, {
  2. int playbackCount = 1,
  3. double playbackSpeedMultiplier = 1.0,
  4. bool avoidPlaybackPauses = false,
})

Replay a supplied sequence.

recordedSequence - Sequence recorded with stopRecording method.

playbackCount - The number of times the sequence is played. If negative, the playback loops indefinitely. Default value: 1.

playbackSpeedMultiplier - Multiplies the speed of playback for faster or slower replays. 1.0 means no change. Default value: 1.0.

avoidPlaybackPauses - When set to true, the player will try to interpolate actions between short wait actions, to continuously render during the playback. This can help to maintain a consistent load during performance testing. Default value: false.

Implementation

Future<void> replay(
  Uint8List recordedSequence, {
  int playbackCount = 1,
  double playbackSpeedMultiplier = 1.0,
  bool avoidPlaybackPauses = false,
}) {
  return _messenger.replay(
    recordedSequence,
    MapPlayerOptions(
      playbackCount: playbackCount,
      playbackSpeedMultiplier: playbackSpeedMultiplier,
      avoidPlaybackPauses: avoidPlaybackPauses,
    ),
  );
}