# Dailymotion Playback Technology
for [Video.js](https://github.com/videojs/video.js) ## Install You can use bower (`bower install @lawchihon/videojs-dailymotion`), npm (`npm install @lawchihon/videojs-dailymotion`) or the source and build it using `npm run build`. Then, the only file you need is dist/Dailymotion.min.js. ## Version Note It only support v5 - v7 ## Example ```html ``` See the examples folder for more ## How does it work? Including the script Dailymotion.min.js will add the Dailymotion as a tech. You just have to add it to your techOrder option. Then, you add the option src with your Dailymotion URL. It supports: - dailymotion.com - Regular URLs: https://www.dailymotion.com/video/x7t3la2 - Embeded URLs: https://www.dailymotion.com/embed/video/x7t3la2 - Playlist URLs: https://www.dailymotion.com/video/x7t3la2?playlist=x6lgtp - Embeded Playlist URLs: https://www.dailymotion.com/embed/video/x7t3la2?playlist=x6lgtp ## Options It supports every regular Video.js options. Additionally, you can change any [Dailymotion parameter](https://developer.dailymotion.com/player/#player-parameters). Here is an example of setting the `ui-highlight` parameter to `fff`. ```html ``` ### Dailymotion controls Because `controls` is already a Video.js option, to use the Dailymotion controls, you must set the `dmControls` parameter. ```html ``` ### Custom Player Options If you need to set any additional options on the Dailymotion player, you may do so with the `customVars` parameter: ```html ``` ## Special Thank You Thanks to everyone contributed on [videojs-youtube](https://github.com/videojs/videojs-youtube) ## License [MIT](LICENSE)