feat(YouTube - Video playback): Improve Disable music playback speed setting (#117)

* fix(Default Music playback speed): Fix side effect left

* fix(Spoof Streaming Data): `approxDurationMs` can be fetched multiple time

* fix(Spoof Streaming Data): Prevent playback issues on Kids videos with music

* Up to now, there have been no recorded cases of playback issues in ANDROID_MUSIC. So it will be better to use this client instead of IOS to handle Kids video with music
* Example video: https://youtu.be/bHtvEpeXrfc

* fix: Apply code review suggestions

* chore: Lint code

---------

Co-authored-by: inotia00 <108592928+inotia00@users.noreply.github.com>
This commit is contained in:
Hoàng Gia Bảo
2025-01-03 17:26:34 +07:00
committed by GitHub
parent 234695dd70
commit 1da2664513
14 changed files with 772 additions and 611 deletions

View File

@ -173,7 +173,7 @@ val videoPlaybackPatch = bytecodePatch(
}
hookBackgroundPlayVideoInformation("$EXTENSION_PLAYBACK_SPEED_CLASS_DESCRIPTOR->newVideoStarted(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JZ)V")
hookPlayerResponseVideoId("$EXTENSION_PLAYBACK_SPEED_CLASS_DESCRIPTOR->fetchPlaylistData(Ljava/lang/String;Z)V")
hookPlayerResponseVideoId("$EXTENSION_PLAYBACK_SPEED_CLASS_DESCRIPTOR->fetchMusicRequest(Ljava/lang/String;Z)V")
updatePatchStatus(PATCH_STATUS_CLASS_DESCRIPTOR, "RememberPlaybackSpeed")