in app/src/main/java/com/amazon/ivs/optimizations/playerview/PlayerView.kt [167:176]
override fun onLayoutChange(
v: View, left: Int, top: Int, right: Int, bottom: Int,
oldLeft: Int, oldTop: Int, oldRight: Int, oldBottom: Int
) {
surfaceView.post {
if (videoWidth > 0 && videoHeight > 0) {
ViewUtil.setLayoutParams(surfaceView, videoWidth, videoHeight)
}
}
}