feat: add frame capture and clipboard helper APIs#7745
Draft
shrey150 wants to merge 1 commit intovideo-dev:masterfrom
Draft
feat: add frame capture and clipboard helper APIs#7745shrey150 wants to merge 1 commit intovideo-dev:masterfrom
shrey150 wants to merge 1 commit intovideo-dev:masterfrom
Conversation
Collaborator
|
Thank you for contributing a PR to HLS.js. This is not a feature related to streaming HLS or supporting MSE based playback. As such it is not something we'll be willing to take at this time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Hls.captureFrame(media, type?, quality?)to capture current video frame as an image BlobHls.copyFrameToClipboard(media, type?, quality?)to write captured frame to ClipboardMotivation
Our dashboard player supports pausing and a right-click action to copy the current frame as an image. These helper APIs make this use-case reusable upstream for hls.js consumers.
Testing
npx eslint src/hls.ts tests/unit/hls.tsnpm run test:unit -- --grep "static frame helpers"Notes