Video overlay

Original demo by Erik Dahlström, published October 4, 2009.

Open Video overlay in the gallery

Video overlay showed how vector graphics could sit on top of moving pictures, in the way a broadcast caption does. A red gradient panel with an icon, a title and a short description faded in over a film, stayed for ten seconds, then slid away. Round buttons played and paused the video through the SVG DOM.

The original relied on the video element from SVG Tiny 1.2, along with its text area element and timing methods. Opera supported that combination, but current browsers do not. The caption’s gradient, drop shadow filters and declarative SMIL animations still work, so they were kept.

In the restored version a hidden HTML video provides the picture and sound. Each frame is copied through a canvas into an SVG image, because WebKit misplaces a video inside foreignObject. The SVG document timeline now follows the player: when the video pauses, the caption pauses with it.

The film has changed as well. The 2009 demo used an old cartoon whose public domain status is doubtful, so this version uses the Big Buck Bunny trailer from the Blender Foundation under CC BY 3.0, with the credit shown on screen. The caption text is new. Playback starts only when you press play.

This note was newly written for the reconstruction. Read the original post in the Internet Archive.

Topics: Animation, Video, Filters