Slow display caused by switching vlcvideolayout, with mMediaPlayer.attachViews()
Description
Hello, my project needs to switch between landscape and vertical screens, and the two UI are completely different, so I have defined two xml, that contain vlcvideolayout controls in them. When mMediaPlayer.attachViews(mVlcVideoLayoutPort) or mMediaPlayer.attachViews(mVlcVideoLayoutLand) is called when switching between landscape and portrait screens, the sound plays normally, but it takes about 2 seconds for the screen to be displayed. I have also tried to set it to textureview, and the problem still occurs. I need your help.
I'm sorry for my poor English.
Expected behavior
Display the screen immediately after calling mMediaPlayer.attachViews
Actual behavior
The screen will be displayed after 1 second of black screen.
Steps to reproduce
1.mMediaPlayer.attachViews(mVlcVideoLayoutPort)
Screenshot / video
Context
App version
0
Android version
android Oreo
Device model
Android Tablet
App mode
Smartphone