code-charity / code-charity/youtube
add an option to auto-close PIP when the source tab active/in focus
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 4.6k
- Forks
- 996
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 7
Description
⚬ PROBLEM:
I often find it frustrating that when I have the Picture-in-Picture (PIP) mode active and want to return to the source tab to watch the video normally, I have to close PIP as well.
⚬ SOLUTION:
If the tab containing the source of the PIP media is active (or in focus), automatically close the PIP window when this proposed feature is enabled.
| SHORT Table | (Summary) |
|---|---|
| Problem | In some use cases PIP on the source tab makes no sense, forcing the user to close PIP manually |
| Solution | Give an option for users to automatically close PIP when the tab with the source video is active (in focus) |
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests. Start by locating the JavaScript handling Picture-in-Picture state and the option or settings entry point, then trace how the source tab becoming active is detected. Done means an enabled option closes the PIP window when its source tab is active, while disabled behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100