← Alle berichten

The presentation player grew up for its viewers

Two weeks after Phlo Presentation could make a film, attention moved from the editor to the person watching it. The player gained the things a video on somebody else's page actually needs.

Multi-instance boot came first. The player used to expect one presentation per page, which is fine for a play page and wrong for a homepage with a film in the middle of it. Now boot() wires up every .pp-embed on the page, a MutationObserver restarts the idempotent boot after an SPA swap, and data-lang lets the hosting site decide which language the film speaks. That last one matters more than it sounds: on this site the film follows the site language, so a Dutch visitor gets the Dutch audio without touching a control.

Then lazy media. An embed used to fetch its video and audio on load, which means a page carrying a film pays for it whether or not anyone presses play. Now it costs its poster images until the first play. A poster moment is a chosen point on the timeline, so the still is a frame you picked rather than whatever frame zero happens to be.

Smaller pieces, all from watching people use it: volume and mute remembered in local storage, position kept in session storage so a language switch does not restart the film, controls that hide themselves during playback, and an accessible surface with aria labels that follow the state.

Phlo Presentation 1.0. See the Presentation handbook.

We gebruiken essentiële cookies om deze site te laten werken. Met uw toestemming gebruiken we ook analytics om de site te verbeteren.