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 control bar hides itself for the ad; a custom UI (controlsEnabled off) should do the same, since seeking is ignored until the ad break ends.