vueuse
vueuse copied to clipboard
feat(usePictureInPicture): new function
Description
Reactive handler for the Picture-in-Picture API.
The Picture-in-Picture API allow websites to create a floating video window always on top of other windows so that users may continue consuming media while they interact with other content sites, or applications on their device.
Additional context
https://www.loom.com/share/91d5dc7a6b974fd79c7f912777bae1ca
What is the purpose of this pull request?
- [ ] Bug fix
- [X] New Feature
- [X] Documentation update
- [ ] Other
Before submitting the PR, please make sure you do the following
- [X] Read the Contributing Guidelines.
- [X] Read the Pull Request Guidelines.
- [X] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
- [X] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g.
fixes #123). - [X] Ideally, include relevant tests that fail without this PR but pass with it.
https://github.com/vueuse/vueuse/blob/23d186e2da529b1b81f741b54ebee2aa1aaa56bd/packages/core/useMediaControls/index.ts#L453
Thanks for the PR, but we already have it in useMediaControls .
@webfansplz There's no room for a silmmer version? That media controls one is fairly hefty ...
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.