Skip to content

fix(streaming): send Chrome's own agent to streaming services by default - #122

Merged
lippdev merged 1 commit into
mainfrom
fix/streaming-chrome-ua
Oct 27, 2026
Merged

lippdev merged 1 commit into
mainfrom
fix/streaming-chrome-ua

Conversation

@lippdev

@lippdev lippdev commented Oct 27, 2026

Copy link
Copy Markdown
Owner

Na 0.1.1-alpha, já com a CDM assinada, o Prime Video recusou tocar com o erro 7132 ("versão antiga ou incompatível deste navegador"). O log do app mostra que o Widevine 4.10.3112.0 carregou. O Prime recebia o UA de TV: … JoyChromium/0.1.1-alpha Chrome/152… Electron/44.9.3 Safari/537.36 JoyChromiumTV/1.0 (TV; SmartTV).

Mudança

  • chromeUserAgent(), em shared/streamingUa.ts, tira os tokens Electron/… e JoyChromium/…. É esse UA, o mesmo que o Chrome manda, que os hosts de STREAMING_HOSTS passam a receber.
  • streamingDesktopUa passa a ser true por padrão. A migração de settings 5 → 6 liga a regra nos perfis existentes: ela estava desligada para todo mundo, e ninguém a tinha escolhido.
  • Fora da lista, o UA de TV continua (youtube.com/tv).
  • DRM-UAS.md registra a decisão.

Verificação: typecheck e 119 testes unitários passam localmente. O streaming-ua.spec.ts foi ajustado e o e2e roda no CI. A prova de verdade é o Prime tocar no app instalado.

🤖 Generated with Claude Code

Prime Video refused to play on 0.1.1-alpha with error 7132 ("old or
incompatible browser"), with a signed CDM, because it received the TV
agent with Electron's tokens. Listed streaming hosts now get Chromium's
agent without the TV marker and without the Electron and app tokens. The
rule is on by default, and the 5 -> 6 settings migration turns it on in
existing profiles.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@lippdev
lippdev merged commit 15c21cc into main Oct 27, 2026
2 checks passed
@lippdev
lippdev deleted the fix/streaming-chrome-ua branch October 27, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant