Premium
Frame Player Controller: Play, Seek and Change Speed on a Clock
Challenge summary
Build the controller of a frame-by-frame player with no UI: play at a frame rate, pause, jump to any frame and change speed while playing, all on timers that never pile up.
What you'll practice
- Run playback on timers inside a closure without ever leaving a second timer behind.
- Re-time playback from the moment a seek or a rate change happens.
- Keep play, pause, seek and setFps safe to call in any order, twice or after the end.
- Validate arguments before changing any state.
What Premium unlocks
Premium unlocks the runnable workspace, behavioral checks, implementation walkthrough, and edge-case discussion.
Free related practice
Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.
Premium is $24 a month or $99 a year, less in many countries.