Some checks failed
build-images / web (push) Has been cancelled
vision2026-ci / Python SDK resource tests (push) Has been cancelled
build-images / api (push) Has been cancelled
build-images / worker-gpu (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Has been cancelled
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Has been cancelled
codeql / Analyze (javascript-typescript) (push) Has been cancelled
codeql / Analyze (python) (push) Has been cancelled
perf / API hot-path micro-smoke (budgeted) (push) Has been cancelled
perf / Desktop engine crates (release build check) (push) Has been cancelled
vision2026-ci / API phase modules (ruff + pytest) (push) Has been cancelled
vision2026-ci / Alembic upgrade + drift check (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Has been cancelled
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.
29 lines
1.6 KiB
Markdown
29 lines
1.6 KiB
Markdown
# 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).
|