Getting started with the player embed is a 2 step process:
- Create a Player and configure a set of feature
- Choose an integration method and embed the player on your properties
If haven't created a player on your channel yet, we invite you to start with the player creation with our dedicated guide.
With the Player Embed, you can embed your Dailymotion player on your properties through different methods, depending on your needs.
In this article, you'll get more insights on the different integration methods and their main differences.
Pick the right integration method for your project
Player Embed integration
The Player embed is the best integration method for all your desktop and web applications.
However, if you would like to integrate our player in a native application, we invite you to use our Android SDK and our Swift SDK.
Embed script |
The player will load at the point where you add the script. This also provides access to the Player API. |
---|---|
Library Script |
Add just the library and create the player programmatically using the Player API |
Iframe |
Embed the player without JavaScript to use a basic player configuration |
Dive into the integration methods
Embed Script
Description |
The easiest way to have all the advanced features working out-of-the box. This one-liner script will let you control in real time the autostart behavior, the Picture-in-Picture, the player’s look and other features. Besides it will make the player JavaScript API available in your website for further customizations. |
---|---|
Recommendations |
The integration is easy, fast and doesn't require technical knowledge. As long as you know where you want the player to appear on the page - you can integrate it within few mouse clicks. Choose this option if you have a doubt on the integration method. |
Integration |
To get more information about the player integration for this method, we invite you to read our Embed Script guide on our developer portal |
Library Script
Description |
This one line script will load our Player JavaScript library and make the Player API available in your environment without injecting the player in the page. The player will be initialized in a second time, allowing you to build custom and advanced workflows based on our player events, our player methods and all the parameters and settings exposed in our API. |
---|---|
Recommendations |
As this integration requires an advanced technical knowledge, we recommend you to use this integration if you have advanced player needs which can't be achieved through the Embed Script method. |
Integration |
To get more information about the player integration for this method, we invite you to read our Library Script guide on our developer portal |
iFrame
Description | The old classic HTML integration, integrating new Player ID to easily customize and update your player. |
---|---|
Recommendations |
Some functionality is not available with this option. We recommend you to use this integration only for mobile integrations like Facebook Instant Articles or AMP pages. For any other context, we invite you to use our Embed Script or Library Script integration method. |
Integration |
To get more information about the player integration for this method, we invite you to read our Iframe guide on our developer portal |
Javascript & IFrame compatibility
Please note that the IFrame integration isn't compatible with JavaScript features such Picture-in-Picture or First Time Viewable.
We invite you to use this integration to manage edge cases where the Embed Script or Library Script couldn't be implemented.
If you need any recommendation on the best integration method to use for your use case and your needs, please feel free to contact our Support team.