-
Notifications
You must be signed in to change notification settings - Fork 413
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
Silence Skipping Audio Processor Exceptions #1352
Comments
Thanks for reporting. I can reproduce a very similar issue, but not exactly the same one. I believe they both have the same root cause though and the exact manifestation depends on the media files and their silences. The problem is that |
Thanks for getting back to me @tonihei I could check the media formats if necessary, but basically any media file could show up in an RSS feed. Is there a workaround you suggest? |
I'm about to submit a fix, but don't know a good workaround for the existing code (except to disable silence skipping shortly before the transition) |
Thanks for getting to it so quickly. |
The class currently tracks the input format itself, updating it too early in onConfigure() instead of onFlush(). This causes issues when the format changes and the new values are applied to the silence skipping logic of the old format. The fix is to use the base class input format handling instead. Issue: #1352 PiperOrigin-RevId: 633232368
What release will the fix be in? |
The upcoming 1.4.0 releases (starting with |
Version
Media3 1.3.1
More version details
This is still in 1.3.1. I believe it was either a new issue in 1.3 or it became much worse after 1.3
Devices that reproduce the issue
Android 14, several manufacturers
Devices that do not reproduce the issue
I attached firebase screenshot.
Reproducible in the demo app?
Not tested
Reproduction steps
This happens during playlist transitions. I see it in production data and reports from users. I've definitely had it happen but can't reproduce easily or 100%
I get this exception in production sporadically, and it causes audio to stop playback. It only happens when transitioningg from
playlist item to another. Disabling the silence skipper resolves it, so I'm fairly positive that is the cause. Here is my RendererFactory
Only happens on Android 14
Expected result
Exception should not be thrown, and playlist transition should occur
Actual result
Exception is thrown and playback stops
Media
My app is a podcast app. I don't have a particular audio file
Bug Report
adb bugreport
to [email protected] after filing this issue.The text was updated successfully, but these errors were encountered: