-
Notifications
You must be signed in to change notification settings - Fork 402
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
The progress of the still video screen seems to change in milliseconds #1466
Comments
I found this issue when I tried to re-use a view in RecyclerView. |
First of all, this particular step is not something you should do in a real app because keeping the player (and the codec in particular) while the app is in background may cause unexpected side effects. I understand that you originally reproduced this in RecyclerView, so I appreciate this is just a test setup.
I was not able to reproduce this on my device by using the pause button in the UI, but I think I can reproduce it by calling The problem may be caused by two different effects:
|
Thanks for your explanation. But my service has a requirement which is focused on visibility not on performance. |
Could you highlight what exactly you are trying to achieve? There may be alternatives to your current usage pattern. But generally, the way codecs work is that they release frames to a surface and there is no way to get the last released frame back again. To avoid this, you need to either recreate the codec or not destroy the surface:
The typical solution to this is to show a placeholder image. You may be able to achieve this by using |
Thank you, you already suggested alternative solution for me. |
Version
Media3 main branch
More version details
No response
Devices that reproduce the issue
Samsung S21+, AOS 13
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Yes
Reproduction steps
Expected result
The progress of the still screen should remain unchanged.
Actual result
The progress of the still screen appears to change in milliseconds.
Media
Screen_Recording_20240617_231732_One.UI.Home.mp4
Bug Report
adb bugreport
to android-media-github@google.com after filing this issue.The text was updated successfully, but these errors were encountered: