Getting started (Web SDK)
1. Create a custom Player configuration
As a first step, you need to create a custom Player configuration associated with your Dailymotion account and identified by a unique Player ID.
ImportantThe Player ID is required to ensure accurate monetization, targeting and attribution.
A custom Player configuration can be created and managed either through the “Players” tab in the Dailymotion Studio or programmatically via the Platform API .
A Player configuration is composed of several settings that can’t be modified or overridden at run time. These settings can only be updated via the Player configurator in the Dailymotion Studio or the Platform API.
For more information on the settings available, refer to the Player fields.
2. Choose an embed method
Once a Player configuration is created you can access the corresponding embed methods to embed content into your properties. Embed scripts can be accessed either from the “Players” tab within the Dailymotion Studio or programmatically via the Platform API.
Below are the 3 embed methods available to embed content on web.
We recommend using the Player Embed Script or Player Library Script where possible as they provide access to all Player functionalities and to the Platform API.
| Embed methods | Info |
|---|---|
| Player Embed Script | Embed using JavaScript, the single line script will load the Player at the point where you add it to the HTML page. This method provides access to the Platform API. |
| Player Library Script | Add just the library and create the Player programmatically using the Platform API. |
| Player iFrame | Embed the Player without JavaScript to use a basic Player configuration. Advanced functionalities such as PiP firstTimeView and enable_receive_url_location will not be available. |
Updated 23 days ago
