onPaused

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

See also

MediaPlayer.setOnPaused