Skip to main content

1. Add it

Since your page and our embed code are on different domains, you need to add some additional JavaScript to use it:

2. Initialise it

Either pass the HTML element ID as the first parameter:
Or you could do the same with an event listener:
Or you might like to use the Player API to control an existing player. In which case you need to pass a reference to that HTML element as the first parameter. For example:
There are a variety of options available. The examples above were deliberately kept simple.

3. Try it

Check the player is ready. That returns a Promise. For example:
You should see the message appear in your browser’s console (usually shown by pressing the F12 key or by opening Developer Tools).