onReady

fun MediaPlayer.onReady(context: CoroutineContext = Dispatchers.JavaFx, action: suspend CoroutineScope.() -> Unit)

See also

MediaPlayer.setOnReady

fun Service<*>.onReady(context: CoroutineContext = Dispatchers.JavaFx, action: suspend CoroutineScope.(WorkerStateEvent) -> Unit)

See also

Service.setOnReady