Module API - end-user/flyovers

A flyover is a function executed for every frame during render process with the main purpose of providing useful information or sync data.

A flyover operates outside a scene animation pipeline, and can it modify the content of one or more elements.

BeamToIX has following built-in flyovers:

  • info
  • video-sync.

More flyovers can be added via pluginManager.addFlyovers.

A info flyover provides information regarding current time position and frame.

  • gallery/animate-flyovers

css

#flyover {
left: 10px;
}

html

<div id="flyover" class="beamtoix-flyover"></div>

js

story.addFlyover('info', {
selector: '#flyover',
format: 'story-frame: ${storyFrameNr}\nstory-time: ${storyElapsedS}',
});

A video-sync flyover synchronizes the current render frame with a background video.

WARNING Due Chrome 'autoplay-policy', it's not possible to 'safely' use Chrome to sync with videos, In order to overcome this limitation:

  1. Use Firefox to test the animation with a background video.
  2. Set serverRender: false to prevent beamtoix render from attempting to sync the video while server render.
  3. When using beamtoix movie, set --bkg-movie parameter with the video filename to use a background video.
  • gallery/animate-video-sync

css

#flyover {
left: 10px;
}

html

<video id=video width="385" height="288" src="assets/video.mp4" type="video/mp4">

js

story.addFlyover('video-sync', {
selector: '#video',
serverRender: false,
});

Index

Interfaces

Type Aliases

Variables

Functions