JavaScript API
You can control the state of the video widget using JavaScript.
You can access the API via:
window.PlaySeeThis is an array of objects representing the video widgets connected to the page.
To access the API of a specific widget, use its ID.
To get the widget ID, go to “Video Widgets”, find the widget you need in the list, and click “Widget Code”. The ID is displayed at the bottom of the opened form.

Video widgets are loaded asynchronously. If you call the JavaScript API before the script has finished loading, it may not work because the widget has not yet been created. You should track the page load state or ensure sequential execution of asynchronous scripts.
You can disable automatic widget display in its settings. To do this, go to the “Display Settings” tab and in the “Widget Display Trigger” section select “Call via JS API (for developers)”.
Last updated