onResolutionChange

open fun onResolutionChange(widht: Int, height: Int): VideoCodecInfo

Called every time the encoder input resolution change. Returns null if the encoder selector prefers to keep the current encoder or a VideoCodecInfo if a new encoder is preferred.