code-charity / code-charity/youtube
Media Key Support
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 4.6k
- Forks
- 996
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 7
Description
⚬ PROBLEM: Inability to use media keys
⚬ SOLUTION: Implement MediaSession.setActionHandler API for nexttrack and previoustrack, especially on playlists. This will allow for the skip and previous media keys to be used on YouTube
⚬ RELEVANCE / SCOPE: All YouTube users
⚬ "SIDE EFFECTS": None?
⚬ "CODE EXAMPLE":
navigator.mediaSession.setActionHandler('previoustrack', function() {
//Code here for previous track
});
navigator.mediaSession.setActionHandler('nexttrack', function() {
//Code here for next track
});
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
No file or test is named. Start by locating the extension's YouTube player and playlist next/previous handling, then review the MediaSession.setActionHandler API for the nexttrack and previoustrack actions. Done means the skip and previous media keys work correctly for YouTube playlists.
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
- 30/100