-
Notifications
You must be signed in to change notification settings - Fork 481
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
SurfaceView & Compose issues still persist in API 35 #2158
Comments
It sounds like you're reporting a re-occurrence of #1237 (which is what This is the original fix submitted by the graphics framework team that intended to resolve #1237 in API 35. This landed in the It was then reverted (the revert did not land on the So the expectation is that #1237 is fixed on API 35, because either the device will be using code from I just tried using the repro project from #1237 (comment) on a Pixel 7a running AP4A.250205.002 (Android 15) and wasn't able to reproduce the issue after several attempts. Whereas I reproduced immediately with the same APK on a Pixel Fold running AP2A.240905.003 (Android 14). Please can you reproduce the issue on a real device running API 35? We have historically seen a lot of surprising UI/video behaviours on emulators, so it would be good to confirm it affects real devices too. It would be useful to include more info as well, such as a screen recording of what you observe and the result of running
Can you please give the steps for reproducing in the demo app? |
https://github.com/user-attachments/assets/b500998c-d144-4a21-b4d5-4e62dc80d3ed In the first video at 00:10, I click on a video which goes into a different screen, at 00:12 I go back and land to the previous screen, top 2 videos start to flicker.
After adding this code above the PlayerView(), nothing gets flickered as can be seen in the second video.
After investigating a bit more upon your message, I saw that on API 35 even after removing the Right now I do not have any physical device that got the Android 15 update but I'll see if I can find any. |
This does sound surprising (but then the original claim that the workaround is required on API 35 is also surprising, so 🤷) Instead of using reflection to change media3's |
Version
Media3 main branch
More version details
SurfaceView related bugs in Compose (flickering videos, cropped and/or stretched players) still persist in api 35. As of now there is a workaround
setEnableComposeSurfaceSyncWorkaround
which works alright in api 34 but not in 35 since the implementation hasUtil.SDK_INT == 34
checks which makes the workaround a no-op for api 35. Actual fix is yet to come from the Compose team so can you update the api level checks to cover 35 as well?Devices that reproduce the issue
emulator running android 15 (api 35)
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Yes
Reproduction steps
Expected result
Actual result
Media
Bug Report
adb bugreport
to [email protected] after filing this issue.The text was updated successfully, but these errors were encountered: