fix(YouTube - Spoof video streams): Fix playback for Android VR by removing invalid body as well (#3769)

This commit is contained in:
oSumAtrIX 2024-10-17 17:16:45 +02:00 committed by GitHub
parent b4c3dac77f
commit 5150a15ad4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -254,7 +254,9 @@ object SpoofVideoStreamsPatch : BytecodePatch(
// endregion // endregion
// region Remove /videoplayback request body to fix playback. // 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 { BuildMediaDataSourceFingerprint.resultOrThrow().let {
it.mutableMethod.apply { it.mutableMethod.apply {