Skip to content

Replace previous/next media controls with rewind/fast forward system-wide#103

Draft
jefemagril wants to merge 4 commits into
Tonwalter888:mainfrom
jefemagril:global-rewind-fast-forward
Draft

Replace previous/next media controls with rewind/fast forward system-wide#103
jefemagril wants to merge 4 commits into
Tonwalter888:mainfrom
jefemagril:global-rewind-fast-forward

Conversation

@jefemagril

Copy link
Copy Markdown

Summary

  • Extends the “Replace Previous/Next buttons” setting to iOS media controls.
  • Remaps Bluetooth, Lock Screen, Control Center, and CarPlay previous/next actions to 10-second rewind/fast-forward.
  • Updates the setting label and description to reflect the broader behavior.

Test plan

  • Enable the setting and verify YouTube player previous/next controls become rewind/fast-forward.
  • Verify Lock Screen, Control Center, Bluetooth, and CarPlay previous/next actions seek backward/forward instead of changing videos.
  • Disable the setting and verify previous/next behavior returns to YouTube’s default.

- Added MediaPlayer framework to the Makefile.
- Introduced seekToTime method in Headers.h for playback control.
- Implemented remote command handling for skip forward and backward functionality in Player.x, allowing users to control playback via remote commands.
- Introduced a typedef for the remote command handler to enhance code clarity.
- Updated the addTargetWithHandler method to use the new typedef, streamlining the handler implementation.
…trings

- Enabled previous and next track commands based on the skip command state in Player.x.
- Revised localization strings for clarity, changing descriptions for replacing previous/next buttons to emphasize the use of Rewind and Fast Forward controls.
…ctionality

- Introduced YouModIsSkipCommand function to identify skip forward and backward commands.
- Updated setEnabled method to manage skip command states alongside previous/next commands.
- Configured remote skip commands in the command handling process for improved playback control.
@Tonwalter888

Copy link
Copy Markdown
Owner

So this is gonna use back 10s and skip 10s right?

@jefemagril

Copy link
Copy Markdown
Author

Correct

@Tonwalter888

Copy link
Copy Markdown
Owner

Correct

I want to make slider settings like YTLite, plus YouMod v2 is currently in development.
So, I will use your codes from your branch and adapt them to #49 as a single commit.
You will be in the Credits section as a contributor.

@Tonwalter888 Tonwalter888 marked this pull request as draft June 22, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants