Skip to content

Commit 5150a15

Browse files
authored
fix(YouTube - Spoof video streams): Fix playback for Android VR by removing invalid body as well (ReVanced#3769)
1 parent b4c3dac commit 5150a15

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/kotlin/app/revanced/patches/youtube/misc/fix/playback/SpoofVideoStreamsPatch.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ object SpoofVideoStreamsPatch : BytecodePatch(
254254
// endregion
255255

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

259261
BuildMediaDataSourceFingerprint.resultOrThrow().let {
260262
it.mutableMethod.apply {

0 commit comments

Comments
 (0)