Skip to content

Blank/Slow Frame Render for videos (Shortform Demo) #1853

Open
@prateek54

Description

@prateek54

Unfortunately we can't answer all questions. Unclear questions or questions with
insufficient information may not get attention.

Before filing a question:

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:

  1. 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.
  2. 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).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions