In ExoPlayer, how exactly to use SimpleExoPlayer.setVideoScalingMode to be like in ImageView center-crop?
问题 Background I'm trying to have a video shown in center-crop manner (like on ImageView). I also hope I can find how to scale in other ways, as done on this library. The problem I use this for this purpose : player!!.videoScalingMode = C.VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING But for some reason it doesn't do center-cropping. What I've tried Looking at the docs, I see this: "Note that the scaling mode only applies if a MediaCodec-based video Renderer is enabled and if the output surface