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.
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
- Check out our Simple Video sample app for an example
- Learn how to use the Raydiant SDK's runtime API
Was this article helpful to you?
Provide feedback
Last edited on November 29, 2024.
Edit this page