# Seek Button

ByteArk Player SDK for Flutter supports seek-forward/backward buttons on the control bar with a configurable seek step.

# Enable

final config = ByteArkPlayerConfig(
  licenseKey: licenseKey,
  playerItem: playerItem,
  seekButtons: true,
  seekTime: 10,  // Seek by 10 seconds
);
1
2
3
4
5
6
Property Type Default Description
seekButtons bool? true Show seek-forward/backward buttons
seekTime int? 30 Seek step in seconds

# Seek via API

_controller.seekForward();              // Forward by seekTime
_controller.seekBackward();             // Backward by seekTime
_controller.seekTo(60_000);             // Seek to a position (milliseconds)
1
2
3

# Receive seek events

final listener = ByteArkPlayerListener(
  onPlaybackSeeking: () => debugPrint("Seeking started"),
  onPlaybackSeeked: () => debugPrint("Seeking ended"),
);
1
2
3
4