onPlayerTypeChanged

var onPlayerTypeChanged: (playerType: PlayerType) -> Unit?(source)

Invoked when playback moves between this device and a connected Chromecast, so a custom UI can stop presenting itself as the thing playing the video.