code-charity / code-charity/youtube

Media Key Support

Open
#676 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature request good first issue help wanted up-for-grabs
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.