I am playing video from URL on Exoplayer, it stretching the video on resizing/on using resize_mode as I have mentioned in layout file
Following two lines helped me to play video in full-screen mode.
Using app:resize_mode in layout file this somehow help but it stretches the video as mentioned in the question picture, so you can solve by adding these two lines in your code.
exoVideoPlayerView.setResizeMode(AspectRatioFrameLayout.RESIZE_MODE_FILL);
exoPlayer.setVideoScalingMode(C.VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING);
Bellow line will ensure that aspect ratio is correctly maintained even for 4:3 videos.
playerView.setResizeMode(AspectRatioFrameLayout.RESIZE_MODE_FIT);.