fix(YouTube - Spoof video streams): Fix playback for Android VR by removing invalid body as well (#3769)
This commit is contained in:
parent
10efb20e35
commit
68b61b4725
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…
Add table
Add a link
Reference in a new issue