Description
Unfortunately we can't answer all questions. Unclear questions or questions with
insufficient information may not get attention.
Before filing a question:
- Ask general Android development questions on Stack Overflow
- Search existing issues, including issues that are closed
https://github.com/androidx/media/issues?q=is%3Aissue - For ExoPlayer-related questions, please also check for existing questions on
the ExoPlayer tracker:
https://github.com/google/ExoPlayer/issues?q=is%3Aissue
When filing a question:
Describe your question in detail.
I've been trying to implement functionality similar to the Shortform app, but encountered an issue during video transitions. While my implementation is based on a single player with a "Next" button, I noticed two main issues:
- The first video takes extra time to render its initial frame. Additionally, when moving to the next video, intermittent delays appear on some videos (typically the 0th, 3rd, or 4th in the sequence). These delays occur regardless of how I order URLs from MediaItemDatabase. If I go through videos from 0 -> 5 and then back from 5 -> 0, the initial frame delay reappears, especially for the 0th video.
- Although I use a single player in my implementation, switching between videos is occasionally slow, causing a visible lag for the initial frame of some videos. In the Shortform demo app, the transition is smoother, though I sometimes notice similar initial frame lags on the first and a few middle videos.
I'm attaching recordings of both the Shortform app issue and my implementation for reference.
Could you help me identify possible causes for the render delays in my implementation, and why it performs slower compared to the demo app? Additionally, I’d appreciate insights into the primary issues faced in the Shortform demo app as well.
Issue in Shortform App | Issue Faced in my internal demo app(Similar to shortform ) |
---|---|
![]() |
![]() |
In case your question refers to a problem you are seeing in your app:
- Output of running
$ adb bugreport
in the console
In case your question is related to a piece of media:
-
URI to test content
-
For protected content:
- DRM scheme and license server URL
- Authentication HTTP headers
Don't forget to check ExoPlayer's supported formats and devices, if applicable
(https://developer.android.com/guide/topics/media/exoplayer/supported-formats).
If there's something you don't want to post publicly, please submit the issue,
then email the link/bug report to [email protected] using a
subject in the format "Issue #1234", where #1234 is your issue number (we don't
reply to emails).