# Autoplay

ByteArk Player SDK for Flutter supports starting playback automatically once the player is ready, configured through autoPlay on ByteArkPlayerConfig.

# Usage

final config = ByteArkPlayerConfig(
  licenseKey: licenseKey,
  playerItem: playerItem,
  autoPlay: true,
);
1
2
3
4
5
Property Type Default Description
autoPlay bool? true Start playback automatically when the player is ready

Note

Both iOS and Android may restrict autoplay with sound in certain situations (Low Power Mode on iOS, no prior user interaction on Android). To improve reliability, consider starting muted and letting viewers turn sound on themselves.