ExoPlayerを割り当てる前に、SerfaceViewに固定サイズを割り当ておく。
AndroidView(
factory = {
PlayerView(context).apply {
(videoSurfaceView as? SurfaceView)
?.holder
?.setFixedSize(720, 1280)
player = exoPlayer
}
},
)