feat: added info button to show video details overlay #9071
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request adds a new InfoButton component to the Video.js control bar. The button, when clicked, displays an overlay with key video information such as duration, current playback time, resolution, and source URL. The overlay appears above the control bar and automatically disappears after 5 seconds.
This feature enhances the user experience by providing quick and accessible video metadata without requiring access to developer tools or console logs.
Specific Changes proposed
InfoButton
class extending Video.jsButton
componentInfoButton
component and added it to the control bar on player readyRequirements Checklist
npm run docs:api
to error