onAdPlayingChanged

var onAdPlayingChanged: (isPlayingAd: Boolean) -> Unit?(source)

Invoked with true when an ad break starts and false when the video takes over again. The built-in controls hide themselves for the ad; with controlsEnabled off, hide your own the same way. Seeking is ignored until the ad break ends, and getCurrentPosition keeps reporting the position in the video rather than in the ad.

Forwards to BunnyPlayerView.onAdPlayingChanged.