# Autoplay

ByteArk Player SDK for iOS supports starting playback automatically once the player is ready, configured through .autoplay(_:) on ByteArkPlayerConfigBuilder.

# Usage

let config = try ByteArkPlayerConfigBuilder(licenseKey: "<YOUR_LICENSE_KEY>")
  .item(item)
  .autoplay(true)
  .build()
player.configure(with: config)
1
2
3
4
5
6

Note

On iOS, autoplay with sound may be restricted by the system in some scenarios (such as Low Power Mode). To improve the chance that the video starts, consider starting muted and letting the viewer enable sound manually.