Skip to content

feat(YouTube Music): Add Spoof player parameter patch #2832

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
5 tasks done
inotia00 opened this issue Mar 12, 2025 · 4 comments
Closed
5 tasks done

feat(YouTube Music): Add Spoof player parameter patch #2832

inotia00 opened this issue Mar 12, 2025 · 4 comments
Labels
Feature request Requesting a new feature

Comments

@inotia00
Copy link
Owner

Application

YouTube Music

Feature description

This is not a feature request, but a description of the feature that will be introduce in the next release.

Around March 2023, I added a protobuf-spoof patch to YouTube to fix playback issues.

This patch was later renamed to the Spoof player parameters patch and worked for quite some time.

Open source YouTube extractors like yt-dlp, NewPipe, and YouTube.js also used this player parameter to fix playback issues, so Google blocked this patch within a few months by changing the structure of innerTube's protobuf message.

Since then, Google has tried various ways to prevent third-party apps from using YouTube extractors.

As a result, in 2025, using ANDROID client requires quite complex prerequisites such as Authorization, PoToken, and Android device attestation, and most open source YouTube extractors have stopped using ANDROID client.

The following are the reasons why I implemented the Spoof player parameter patch in YouTube Music:

  1. In order to use the Spoof client patch without issues, the initplayback domain must be blocked, otherwise the video action bar will not be shown.

: YouTube Music 7.16.51 + iOS Music 6.21 works without blocking the initplayback domain.

  1. When the initplayback domain is blocked, the app crashes for some users who use VPN or DNS.

: It seems that VPN or DNS block certain services of GmsCore. Whitelisting GmsCore and RVX Music in VPN or DNS will fix the issue.

  1. Almost all open source YouTube extractors have stopped using ANDROID client.

: Nowadays almost all open source YouTube extractors use either WEB client or TV client (with integrated PoToken generator).

Unlike 2 years ago, very few users using RVX Music are expected to use this patch now.

For this reason, Spoof player parameter patch will be added to YouTube Music, and Spoof client patch will be excluded by default.

Motivation

Spoof streaming data and Spoof client patches do not work for some users due to the structural limitations of the YouTube Music app.

Acknowledgements

  • This is not a feature request for YouTube.
  • This issue is not a duplicate of an existing feature request.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
  • I have written the title and contents in English.
@inotia00 inotia00 added the Feature request Requesting a new feature label Mar 12, 2025
inotia00 added a commit to inotia00/revanced-patches that referenced this issue Mar 14, 2025
@inotia00
Copy link
Owner Author

Reflected in revanced-patches-5.5.1

@inotia00 inotia00 pinned this issue Mar 16, 2025
@Aryan-Chauhan
Copy link

Aryan-Chauhan commented Mar 22, 2025

I'm using latest patches.

Should I enable Spoof Client or Spoof Player Parameter or both?

If both are off, I get playback issue.

If any one is on, no playback issue.

If both are on, no playback issue.

So, what will you recommend to me?

@inotia00
Copy link
Owner Author

Spoof client is deprecated and no longer maintained.

(this patch is excluded by default)

To reduce confusion, I will remove the Spoof client patch from the patch list.

inotia00 added a commit to inotia00/revanced-patches that referenced this issue Mar 24, 2025
@751PARVEEN
Copy link

Rvx music crashes after playing a song (i have given unrestricted battery usage access and allowed app to use in background too) i am using spoof player parameters too .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Requesting a new feature
Projects
None yet
Development

No branches or pull requests

3 participants