This web project allows users to watch any video in picture-in-picture mode. Picture-in-picture mode is a feature that lets users display a video element in a floating window that stays on top of other windows or applications. This way, users can watch their favorite videos while multitasking on their computer.
This web project uses the Picture-in-Picture API to request and exit picture-in-picture mode for a video element. It also uses the Screen Capture API to let users select any video source from their screen, such as a browser tab, an application window, or their entire desktop.
To use this web project, follow these steps:
- Clone this repository:
git clone https://github.com/yourusername/picture-in-picture-project.git
- Navigate to the project folder:
cd picture-in-picture-project
- Open the index.html file in your browser
- Click on the "Select Video Source" button and choose any video source from your screen
- Click on the "Start" button and enjoy watching your video in picture-in-picture mode
- To exit picture-in-picture mode, click on the "x" icon on the floating window or press Esc key
This web project is licensed under the MIT License - see the LICENSE.md file for details.