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

Adds an error log when a potential video codec stall is detected #26

Merged
merged 1 commit into from
Sep 15, 2024

Conversation

SylvainMorel
Copy link

We have a production issue where we get infinite fast state flips between buffering and playing after a while.
So far, investigations have allowed us to understand that the issue seems that video frames do not get out of the codec. So after approximately 3 mins, the playhead gets to the end of the video buffer, so the player switches immediately to buffering. But at the same, the buffer is full (it's not being consumed anymore) so the buffering system flips it back to playing immediately. And that cycle is then repeated.

This PR adds a way to detect the codec stall situation, and send an error through the logger. The app will then be able to handle the error properly (potentially by restarting the playback automatically).

To do so, we just check if we've been waiting for a decoded buffer for a certain time without getting any.

@SylvainMorel SylvainMorel merged commit 544ae27 into mirego-main-1.3.1 Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants