onPlayingChanged

var onPlayingChanged: (isPlaying: Boolean) -> Unit?(source)

Invoked when playback starts or stops, whatever the cause - a control, your own code, the end of the video, or a handover to Chromecast. Keep a custom play/pause button in sync with this rather than with your own taps.