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

feat(UI): Add ad statistics button #6827

Merged
merged 6 commits into from
Jun 17, 2024
Merged

Conversation

avelad
Copy link
Member

@avelad avelad commented Jun 14, 2024

No description provided.

@avelad avelad added type: enhancement New feature or request component: UI The issue involves the Shaka Player UI component: ads The issue involves the Shaka Player ads API or the use of other ad SDKs priority: P3 Useful but not urgent labels Jun 14, 2024
@avelad avelad added this to the v4.10 milestone Jun 14, 2024
@avelad avelad requested review from joeyparrish and theodab June 14, 2024 09:48
@shaka-bot
Copy link
Collaborator

shaka-bot commented Jun 14, 2024

Incremental code coverage: 29.87%

contextMenuElements: [
'loop',
'picture_in_picture',
'statistics',
'ad_statistics',
Copy link
Contributor

Choose a reason for hiding this comment

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

Be sure to add this to docs/tutorials/ui-customization.md

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

Copy link
Contributor

Choose a reason for hiding this comment

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

That doc also lists elements that can be added to different UI areas. See, for example, where it lists picture_in_picture

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

@avelad avelad requested a review from theodab June 17, 2024 07:09
* recenter_vr: adds a button that recenter the VR view to the initial view. The button is visible
only if playing a VR content.
* toggle_stereoscopic: adds a button that toggle between monoscopic and stereoscopic. The button
is visible only if playing a VR content.
* ad_statistics: adds a button that displays ad statistics of the video.
Copy link
Contributor

Choose a reason for hiding this comment

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

You should also add ad_statistics (and fix the capitalization on statistics) in the listing under #### Replacing the default context menu, since it looks like your new button can also be added to the context menu.

...Perhaps we should come up with some way of generating this automatically, since it's such an annoying thing to keep in sync. It was simpler to maintain this doc when we didn't have all of these different menus! Well, another time.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, maintaining this is a pain, we should change it in the future... :(

@avelad avelad requested a review from theodab June 17, 2024 08:33
@avelad avelad merged commit ea82028 into shaka-project:main Jun 17, 2024
11 of 16 checks passed
@avelad avelad deleted the ui-ad-statistics branch June 17, 2024 08:50
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Aug 16, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Aug 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: ads The issue involves the Shaka Player ads API or the use of other ad SDKs component: UI The issue involves the Shaka Player UI priority: P3 Useful but not urgent status: archived Archived and locked; will not be updated type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants