Skip to content

feat: add duration parameter for QR code generation and local dev setup#59

Open
adithya1012 wants to merge 1 commit intomieweb:mainfrom
adithya1012:video_duration_set
Open

feat: add duration parameter for QR code generation and local dev setup#59
adithya1012 wants to merge 1 commit intomieweb:mainfrom
adithya1012:video_duration_set

Conversation

@adithya1012
Copy link
Copy Markdown

@adithya1012 adithya1012 commented Mar 9, 2026

Description

QR Upload — duration parameter

Demo:
https://youtube.com/shorts/JJxZMVX99Rs

The mobile app requires a duration hint when receiving an upload deeplink. This PR adds duration=180 (seconds) as a query parameter appended to the pulsecam:// deeplink encoded into the upload QR code.

Changes:

  • qr.js — Added duration to the /qr/deeplink querystring schema (default 180), appended it to the URLSearchParams before building the deeplink URL, and included it in the JSON response.
  • video-actions.ts — Passes &duration=180 when calling the backend /qr/deeplink endpoint from generateUploadQRCode().

Resulting deeplink format:

pulsecam://?mode=upload&server=<url>&token=<token>&draftId=<uuid>&duration=180

Dev Docker Compose (docker-compose.dev.yml)

The existing docker-compose.yml targets production (Proxmox/LXC) and was missing PostgreSQL entirely. Running it locally caused Redis ECONNREFUSED 127.0.0.1:6379 because REDIS_HOST defaulted to localhost inside the container instead of the Docker service name.

Changes:

  • Added docker-compose.dev.yml — a self-contained local development compose file with:
    • PostgreSQL 16 (required by frontend Prisma/Better Auth — was absent from prod compose)
    • Redis 7 with REDIS_HOST: redis explicitly set on backend and worker (fixes the ECONNREFUSED connection error)
    • All service ports exposed locally (5432, 6379, 3000, 3001, 8080, 9090, 3100)
    • DATABASE_URL and BACKEND_URL pre-wired between services
    • Dev-safe placeholder secrets (HMAC_SECRET, BETTER_AUTH_SECRET)

Usage:

docker compose -f docker-compose.dev.yml up --build

…ted logic

- Docker-compose dev file for local development.
@adithya1012 adithya1012 changed the title feat: add duration parameter for QR code generation and Local dev setup feat: add duration parameter for QR code generation and local dev setup Mar 9, 2026
@adithya1012 adithya1012 marked this pull request as ready for review March 9, 2026 17:56
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.

2 participants