Dev.to WebDev πŸ›  Dev πŸ‘ 0 πŸ“– 1 min read

Building SceneQuiz: Spoiler-Safe HD Video Movie & Global Series Quizzes Across 19 Languages

Daily single-frame movie puzzles are fun, but cinema lives in motion, pacing, dialogue, and sound design. Over the past few months, I built SceneQuiz (https://scenequizapp.com/)β€”a free browser and mobile trivia engine wh

Daily single-frame movie puzzles are fun, but cinema lives in motion, pacing, dialogue, and sound design. Over the past few months, I built SceneQuiz (https://scenequizapp.com/)β€”a free browser and mobile trivia engine where players identify 2,480+ movies, anime, and global TV series from real 5-second HD video clips with original audio.

Here are three engineering challenges that shaped the architecture:

1. Frame-Accurate Spoiler Cuts with spoilerTiming.json

Playing moving scenes introduces a tricky UX constraint: a single extra second can reveal a character's name on screen or spoil a major plot twist. Instead of hard-re-encoding thousands of variants, we maintain a declarative spoilerTiming.json manifest that maps every clip ID to millisecond-accurate start/cutoff boundaries. Using requestVideoFrameCallback (with a high-frequency timeupdate fallback on older mobile browsers), playback halts right at the peak of dramatic tensionβ€”before the revealβ€”while background preloading warms the next round's video buffer for zero-latency transitions.

2. Static SSG Across 3,100+ Localized Routes & 19 Languages

Because film and TV titles vary dramatically by region, we built a static-site generation (SSG) pipeline that compiles 3,100+ localized category, franchise, and language routes across 19 languagesβ€”complete with localized title matching, hreflang meshes, and structured metadata.

3. Bidirectional RTL & Global Regional Hubs

Supporting Arabic and Hebrew alongside European and CJK scripts required logical CSS properties (margin-inline, inset-inline) so countdown HUDs, 1v1 live duel scoreboards, and answer cards mirror cleanly in RTL layouts without layout shift.

Try Live Regional Hubs in the Browser (Zero Signup)

Would love feedback from fellow web and game devs on clip preloading speed on mobile browsers and audio UX!

πŸ“° Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.