createCastPlayer

abstract fun createCastPlayer(listener: CastSessionListener): Any?

Creates the cast playback engine (androidx.media3.cast.CastPlayer), reporting session availability through listener. Returns null when cast is unavailable on this device (e.g. missing Play Services).