Skip to main content
The BeyondWords widget API lets you control and interact with the widget programmatically: controlling playback, reading state, listening to events, and updating widget properties at runtime. The API is available on all widget platforms. On iOS and Android, the native SDKs expose the same properties and methods through their PlayerView wrappers. When you set a property both in the dashboard and in your embed code or SDK configuration, the value passed at initialization takes precedence. See programmatic control for override order details.
Widget or player? The widget used to be called the player. You’ll still see player in API endpoints, SDK methods, and embed code. These refer to the widget, and existing integrations keep working without changes.

Get a widget instance

Before you can use the API, you need a reference to the widget instance. Embed script:
NPM:
Once you have a widget instance, you can use the properties, events, and methods documented in the sections below.

Properties

Read and set widget configuration and state.

Events

Listen and respond to widget lifecycle events.

Programmatic control

Control playback, navigation, and widget behavior from your code.