setViewport

open override fun setViewport(width: Int, height: Int, scale: Float)

The size of the surface the overlay is drawn on, from its host. KitePlayerView gives the size of its subtitle layer here, which only the host knows while the codec owns the video Surface.