Skip to content
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

Add new consecutiveDroppedFrames callback #1917

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Dec 4, 2024

  1. Add new consecutiveDroppedFrames callback

    This is similar to the `droppedFrames` callback, but represents the number of consecutive frames that we dropped before rendering a frame or seeking or stopping the renderer.
    
    While we already have a `maxConsecutiveDroppedFrame` available in the `DecoderCounters`, this doesn't provide enough visibility into the actual statistics of dropped frames.
    
    If we get 200 dropped frames and a `maxConsecutive` of 20, we don't know if we dropped 20 frames in a row once and then dropped a single frame 180 times or if we dropped 20 frames 10 times.
    
    We could add some code on our `OnDroppedFrames` callback to estimate if two calls are for consecutive frames, but that seems very fragile.
    
    Specifying when to invoke the callback is controlled by `minConsecutiveDroppedFramesToNotify` similar to the `maxDroppedFramesToNotify` but that would only notify if more than X consecutive frames were dropped.
    
    Adding support for both `MediaCodecVideoRenderer` and `DecoderVideoRenderer`.
    khouzam committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    a20a1d8 View commit details
    Browse the repository at this point in the history