Skip to content

Examples ​

Every example on these pages is a live player running the latest code of the library, which may include features that aren't on npm yet. The changelog lists those under Unreleased. Click Play, answer questions and click hotspots, then look at the story and code under each one.

The stories get their video URLs from a small video("name") helper that points to this site's clips. In your own stories, use your videos' URLs instead.

ExampleWhat it shows
Branching storyA question that sends the viewer down one of two paths.
Quiz with retriesRight and wrong answers, with a loop back to the question.
Timed quiz with a scoreCountdowns, a score in story variables, a hint shown by a condition and a retry branch.
Hotspot shapesRectangles, ellipses and polygons, the four built-in variants, and the events they report.
Tracking a moving objectAn animated hotspot that follows a ball across the video, frame by frame.
Custom themeCustom properties, ::part() and slots to restyle the whole player.
Custom hotspot contentrenderHotspot and custom variants to draw your own hotspots.
Chapters pluginChapter cues in the story, and a player plugin that shows them as a menu over the video.
Player built with coreYour own interface on top of StoryEngine and MediaController, without <ivkit-player>.
Validation playgroundEdit a story and see what validateStory reports, as you type.

Showcase ​

Complete interactive videos built on real footage, the way you'd use IVKit in a product.

ShowcaseWhat it shows
Lesson: a rocket launchAn educational video of the Artemis I launch, with parts to explore, a hotspot that follows the rocket, a scored quiz and feedback scenes.
Following trafficDrone footage of a roundabout, with a rectangular hotspot following each of six cars through the curves, and a question about where one of them went.
Stories playerA vertical player in the style of social media stories, built on @ivkit/core, with progress bars, tap navigation and hold to pause, on Yellowstone footage.

About the videos ​

The videos of the examples above are generated placeholders, so that hotspots line up exactly with what they point at. The showcases use public-domain and CC0 footage.