mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2024-11-12 18:04:26 +01:00
fix(YouTube - Spoof video streams): Fix playback for Android VR by removing invalid body as well (#3769)
This commit is contained in:
parent
b4c3dac77f
commit
5150a15ad4
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue