JavaScript API

You can control the state of the video widget using JavaScript.

You can access the API via:

window.PlaySee

This 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.

circle-exclamation
circle-info

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