Skip to content

Commit

Permalink
fix(YouTube - Spoof video streams): Fix playback for Android VR by re…
Browse files Browse the repository at this point in the history
…moving invalid body as well (ReVanced#3769)
  • Loading branch information
oSumAtrIX authored Oct 17, 2024
1 parent b4c3dac commit 5150a15
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ object SpoofVideoStreamsPatch : BytecodePatch(
// endregion

// region Remove /videoplayback request body to fix playback.
// This is needed when using iOS client as streaming data source.
// It is assumed, YouTube makes a request with a body tuned for Android.
// Requesting streams intended for other platforms with a body tuned for Android could be the cause of 400 errors.
// A proper fix may include modifying the request body to match the platforms expected body.

BuildMediaDataSourceFingerprint.resultOrThrow().let {
it.mutableMethod.apply {
Expand Down

0 comments on commit 5150a15

Please sign in to comment.