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

Demo/v4: Add possibility to see the debug element in the demo page #1318

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

peaBerberian
Copy link
Collaborator

@peaBerberian peaBerberian commented Nov 20, 2023

The createDebugElement method allows to generate an RxPlayer-made debug element.

It is used most often as a stats-for-nerds-like kind of things to quickly inspect, debug and report issues by displaying some interesting playback stats without having to dive into debug logs to obtain them.

We didn't yet had a possibility to show them in the demo, so this commit quickly does that. It does it in the laziest way possible, by just adding a "Display debug element" checkbox in the chart area of the demo, which will display debug information on top of the media element when enabled and playing content.

debug_demo
Debug element shown on top of the video element, with the corresponding checkbox enabled (at the bottom of the screenshot)

It may have more its place in the controls (which is what e.g. YouTube or Twitch choose to do in their production page for their debug divs, and Canal+' main products most often set it in a contextual menu), I don't even know if it does or not, but I was too lazy to do this just for our demo page.
Putting it in charts was much simpler because no controls with checkbox exist yet, whereas charts only have checkboxes. So I just chose the easiest way!

@peaBerberian peaBerberian added the Demo Relative to the RxPlayer's demo page label Nov 20, 2023
@peaBerberian peaBerberian added this to the 4.0.0-rc.1 milestone Nov 20, 2023
The `createDebugElement` method allows to generate an RxPlayer-made debug
element.

It is used most often as a stats-for-nerds-like kind of things to
quickly inspect, debug and report issues by displaying some interesting
playback stats without having to dive into debug logs to obtain them.

We didn't yet add a possibility to show them in the demo, so this commit
quickly does that. It does it in the laziest way possible, by just
adding a "Display debug element" checkbox in the chart area of the demo,
which will display debug information on top of the media element when
enabled and playing content.

It may have more its place in the controls (which is what e.g. YouTube or
Twitch choose to do in their production page for their debug divs, and
Canal+' main products most often set it in a contextual menu), I don't
even know if it does or not, but I was too lazy to do this just for our
demo page.
Putting it in chart was much simpler because no controls with checkbox
exist yet, whereas charts only have checkboxes. So I just chose the
easiest way!
@Florent-Bouisset
Copy link
Collaborator

Nice!

@peaBerberian peaBerberian merged commit ae7ce92 into next-v4 Nov 21, 2023
3 checks passed
peaBerberian added a commit that referenced this pull request Nov 23, 2023
Demo/v4: Add possibility to see the debug element in the demo page
peaBerberian added a commit that referenced this pull request Dec 4, 2023
Demo/v4: Add possibility to see the debug element in the demo page
peaBerberian added a commit that referenced this pull request Dec 5, 2023
Demo/v4: Add possibility to see the debug element in the demo page
peaBerberian added a commit that referenced this pull request Dec 5, 2023
Demo/v4: Add possibility to see the debug element in the demo page
peaBerberian added a commit that referenced this pull request Dec 7, 2023
Demo/v4: Add possibility to see the debug element in the demo page
peaBerberian added a commit that referenced this pull request Dec 19, 2023
Demo/v4: Add possibility to see the debug element in the demo page
peaBerberian added a commit that referenced this pull request Dec 20, 2023
Demo/v4: Add possibility to see the debug element in the demo page
peaBerberian added a commit that referenced this pull request Dec 22, 2023
Demo/v4: Add possibility to see the debug element in the demo page
peaBerberian added a commit that referenced this pull request Jan 3, 2024
Demo/v4: Add possibility to see the debug element in the demo page
peaBerberian added a commit that referenced this pull request Jan 3, 2024
Demo/v4: Add possibility to see the debug element in the demo page
peaBerberian added a commit that referenced this pull request Jan 11, 2024
Demo/v4: Add possibility to see the debug element in the demo page
peaBerberian added a commit that referenced this pull request Jan 11, 2024
Demo/v4: Add possibility to see the debug element in the demo page
peaBerberian added a commit that referenced this pull request Jan 15, 2024
Demo/v4: Add possibility to see the debug element in the demo page
peaBerberian added a commit that referenced this pull request Jan 23, 2024
Demo/v4: Add possibility to see the debug element in the demo page
@peaBerberian peaBerberian deleted the demo/debug-element branch February 7, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Demo Relative to the RxPlayer's demo page
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants