mirror of
https://github.com/revanced/revanced-patches
synced 2024-10-31 08:43:20 +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
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user