onStateChange

abstract fun onStateChange(host: Player, state: Player.State, cause: Throwable? = null)

Player の状態が変化したときに呼び出されます。