Repository navigation
feat(ytmusic): native VISIONOS + rquickjs (.qbc) cipher and quickjs-ng fallback (remove Deno) - #1
Merged
ajisth69 merged 1 commit intoNov 29, 2026
Conversation
…d quickjs-ng fallback
ajisth69
force-pushed
the
feat/native-stream-rquickjs
branch
from
November 29, 2026 05:37
0fd4436 to
72c93de
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem & Resulting Behavior
Previously,
lastwave-ytmusicspawnedyt-dlp+denofor every YouTube Music track, requiring a ~94 MB external Deno runtime and ~3–5s per track lookup.This PR shifts primary stream resolution to native InnerTube (
VISIONOS→ANDROID_VR→WEB_REMIXwith an embeddedrquickjs.qbcbytecode cipher adapted fromClash-Projects/firebird), removes thedenorequirement completely, and updatesyt-dlpfallback to--js-runtimes quickjs,node(quickjs-ng/qjs~1.8 MB):crates/lastwave-ytmusic/src/player/stream.rs): Fetches/cachesvisitorDataviaInnerTube::ensure_visitor_data, resolves unciphered streams viaVISIONOS/ANDROID_VR(~250–750 ms), and uses signed-inWEB_REMIX+.qbcbytecode when needed..qbccipher (crates/lastwave-ytmusic/src/player/cipher.rs): Validates community player recipes (ZemerTeam/zemer-cipher,MetrolistGroup/faraday), splices_result.sig/_result.nintobase.js, compiles stripped.qbcbytecode cached on disk, and decipherssignatureCipher+nchallenges in-process.mpvloading (crates/lastwave-audio/src/lib.rs,player/mod.rs): AddsMpv::load_with_headersso stream-boundUser-Agent,Origin,Referer, andX-Goog-Visitor-Idreachmpvcleanly.quickjs-ngfallback &doctor(stream.rs,doctor.rs, docs): Removesdenochecks/requirements, marksyt-dlpandqjsas optional fallback/cookie tools, and passes--js-runtimes quickjs,node.Validation (Windows 11 x86_64,
LASTWAVE_REQUIRE_MPV=1withmpv v0.42.0)cargo fmt --all --check— passedcargo clippy --workspace --all-targets --locked -- -D warnings— passed (0 errors)cargo test --workspace --locked -- --test-threads=1— passed across all crates (lastwave: 7,lastwave-audio: 11 unit + 2 real-mpvfixtures,lastwave-core: 20,lastwave-os: 2,lastwave-sources: 15,lastwave-tui: 161,lastwave-ytmusic: 101)cargo check -p lastwave --no-default-features --locked— passed--ignored):player::cipher::tests::compiles_and_solves_live_youtube_player_qbc— passed against live YouTube (sts=20779, 3,015 KB.qbc, warm disk load ~156 ms, solve ~93 ms)player::stream::tests::yt_dlp_finds_a_stream— passed in 0.96s viaVISIONOS, verified HTTP206at bothbytes=0-1023andbytes=1100000-1101023lastwave doctor&lastwave play ytmusic:track:plnfIj7dkJE(--ao=null) with onlympvonPATH(noyt-dlp,deno, orqjs) — passed (10 available · no problems, live playback progressed0:00→0:01 / 3:51)