Notify VideoFrameReleaseTimeHelper of all frame PTS values
Previously, VideoFrameReleaseTimeHelper didn't receive PTS values for frames that were skipped. This would lead to unnecessary sync loss when encountering such buffers, because the helper would see a frame-rate change (i.e., the next frame being significantly longer than previous ones). After this change, VideoFrameReleaseTimeHelper is notified of all frame PTS values, so it can retain sync in this case. This change also propagates onStarted and onPositionReset to the helper. This paves the way for decoupling frame-rate estimation from release adjustment sync. Note that currently, loss of sync effectively resets both. This is unnecessary. For example, if the renderer is paused and later resumed, then release adjustment sync needs to be reset, but any frame-rate estimate we have is still valid. PiperOrigin-RevId: 343803531
Showing
with
80 additions
and
42 deletions
Please
register
or
sign in
to comment