DevTools API
Use the built-in developer tools to simulate sending and receiving events in local development.
When you open your app directly in the browser the dev tools are automatically enabled.
Usage
// If installed with NPM:
import { runtime } from '@raydiant/sdk';
// Or if installed using the global script:
const { runtime } = window.Raydiant;
// Check if dev tools are enabled.
devTools.isEnabled();
// Simulate receiving 'play' from the playlist runtime.
devTools.play();
// Immediately call play again after complete, simulating a
// single presentation in the playlist.
devTools.play(true);
// Stop looping.
devTools.disableLoop();
Next Steps
Was this article helpful to you?
Provide feedback
Last edited on November 29, 2024.
Edit this page