-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in some device when changing orientation black screen #7155
Comments
Try using
If that doesn't help, please share a complete project that reproduces the issue (e.g., via GitHub), rather than pasting individual files into an issue. It's much more efficient for us to take a look that way, and also ensures we're doing the same thing as your project. |
@ojw28 Sorry for not replying in time android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize|uiMode" it's no work also this is complete project url https://github.com/447zyg/exo_test thanks |
The surface to which the video is being rendered is destroyed and recreated by the way you switch to fullscreen. This happens because you remove the When this happens, you run into the platform limitation that's discussed quite extensively in #677, meaning that the transition is only smooth if the device supports It's a bit awkward, and is more difficult the more complicated your UI is, but you can fix this across all devices by making sure the |
@ojw28 |
I'm pretty sure YouTube avoid detaching the view from the hierarchy, as I've described. |
I am facing this issue with switchTargetView also. Is there any way to add dummy surface while rotation to stop black screen |
|
I am also facing this issue on manually rotating the screen |
androidx project
implementation 'com.google.android.exoplayer:exoplayer:2.11.3'
pre version also have this problem
in v2.9.6 is not black screen. but screen is stuck
but voice is continue it's no problem
activity code
public class MainActivity extends Activity {
}
layout
i set the activity
android:configChanges="keyboardHidden|orientation|screenSize"
in AndroidManifest
in Meizu PRO7-s. it's MT cpu
in most of device it's work well
app:surface_type="texture_view"
app:surface_type="surface_view"
same problem
The text was updated successfully, but these errors were encountered: