Duration Mode

When your app is in a playlist, the amount of time it is visible before moving on to the next presentation in the playlist is called the duration.

Raydiant apps support two different duration modes; fixed and dynamic.

Fixed Duration

The duration of a fixed duration app can be known upfront. For example, in our Weather sample app the duration is configurable when creating a presentation.

Since the runtime is able to determine the duration of the app before loading it—the Weather app's duration mode is fixed.

Fixed duration apps will automatically move on to the next presentation in the playlist after the configured duration.

Exclamation
When your app is the only presentation in the playlist, the runtime will not automatically refresh your app. Make sure to periodically update any data your app fetches on load.

Dynamic Duration

The duration of a dynamic duration app cannot be known upfront. A dynamic duration app might move to next presentation in the playlist when:

  • A video has finished playing
  • A live stream or meeting has ended
  • After 10 news articles have been cycled through

Since the runtime is unable to determine the duration of a dynamic duration app, you must use the Raydiant SDK to notify the runtime when your app has completed.

video.addEventListener('ended', () => {
  runtime.complete();
});

Next Steps


Was this article helpful to you?
GitHubProvide feedback

Last edited on April 17, 2024.
GitHubEdit this page