Supports for Dailymotion player with the Dailymotion player API.
Important
The Dailymotion API is automatically loaded by the provider.
| Name | dailymotion |
| Path | vlitejs/providers/dailymotion |
| Entry point | vlitejs/providers/dailymotion.js |
First, Dailymotion requires a Player Id to create player with the JavaScript API. It can be created from the Partner Space (see Getting started) and passed to the function registerProvider as the following example.
<div id="player" data-dailymotion-id="<video_id>"></div>import 'vlitejs/vlite.css';
import Vlitejs from 'vlitejs';
import VlitejsDailymotion from 'vlitejs/providers/dailymotion.js';
Vlitejs.registerProvider('dailymotion', VlitejsDailymotion, {
playerId: '<player_id>' // Required by Dailymotion
});
new Vlitejs('#player', {
provider: 'dailymotion'
});See the Dailymotion provider demo.
See the Dailymotion player API documentation.