onVideoSizeChanged

abstract fun onVideoSizeChanged(width: Int, height: Int)

Called before a frame is rendered for the first time since setting the surface, and each time there's a change in the size or pixel aspect ratio of the video being rendered.

Parameters

width

The video width in pixels, 0 when unknown.

height

The video height in pixels, 0 when unknown.