caelum0x d56639a594
Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Menivor — open source release (MIT), free to use and fork
Paid, hosted product at menivor.com, now retired as a company project.
Fresh squashed history of the cleaned working tree (secret-scanned,
no .env, no customer data, no outreach logs). Built on
MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
2026-12-04 02:10:26 +03:00

1.6 KiB

Menivor cast receiver (QM1.4, P-M16)

A static Custom Web Receiver for Chromecast and Google TV. The phone app casts a title with customData (apiBase, titleId, the viewer session and the device id). The receiver gets its own playback grant, refreshes it a minute before the 10-minute token ends, and rewrites every manifest, segment and key request to the newest token, so a 30-minute title plays to the end.

  • token.js: the refresh and rewrite logic (tested in ../tests/cast-receiver.test.ts with a simulated 30-minute playback).
  • config.js: the API allowlist (API_ORIGINS, default https://api.menivor.com) and the dev-only ALLOW_LOCALHOST flag. The receiver refuses any apiBase whose exact origin is not listed (https only) and shows the reason on screen without fetching. npm run cast:publish uploads a generated copy when CAST_API_ORIGINS / CAST_ALLOW_LOCALHOST=1 are set.
  • mark.js: the moving viewer code drawn over paid titles (same spots as the web and phone players).
  • receiver.js: the CAF wiring (LOAD interceptor, request handlers, error and viewer code overlays).
  • index.html: the page the Cast device loads.

Hosting: upload the page and scripts to the public R2 bucket behind https://cast.menivor.com/ (npm run cast:publish prints the wrangler r2 commands; it does not upload by itself). Then register the receiver URL in the Google Cast SDK Developer Console and build the phone app with EXPO_PUBLIC_CAST_RECEIVER_ID=<app id> and EXPO_PUBLIC_CAST_LIVE=1. Registering the receiver is an owner step (Cast console account).