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

Debug: update buffer graph maximum size so it becomes more readable for lengthy contents #1316

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

peaBerberian
Copy link
Collaborator

When displaying the RxPlayer's debug element, a graph describing the audio, video and text qualities in the various buffers might be displayed.

At maximum, that graph could display 10000 seconds of content, which made in that case the graph poorly readable.

I now chose to reduce it to maximum 30 minutes, as you rarely intend to see more when displaying debug information, making it much more readable.

…or long contents

When displaying the RxPlayer's debug element, a graph describing the audio, video
and text qualities in the various buffers might be displayed.

At maximum, that graph could display 10000 seconds of content, which made
in that case the graph poorly readable.

I now chose to reduce it to maximum 30 minutes, as you rarely intend to see more
when displaying debug information, making it much more readable.
@peaBerberian peaBerberian added this to the 3.33.0 milestone Nov 20, 2023
maximumPosition = maximumPoint;
minimumPosition = maximumPoint - BUFFER_WIDTH_IN_SECONDS;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is it possible to have currentTime to undefined?

If currentTime is undefined we may have an issue in
minimumPoint = Math.min(currentTime, minimumPoint);
that may return NaN ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right it seems it cannot be undefined here. I will update

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@peaBerberian peaBerberian merged commit ff213e1 into master Nov 22, 2023
3 checks passed
@peaBerberian peaBerberian mentioned this pull request Jan 24, 2024
@peaBerberian peaBerberian deleted the misc/more-readable-buffer-graph branch February 7, 2024 17:48
This pull request was closed.
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.

2 participants