Dailymotion Player Tools
Menu
Dailymotion Embedded Player Parameters
Table of content
Overview
Dailymotion's embedded player can be modified using the parameters described in this document. By adding these parameters to the SWF URL, you can customize color, borders, and various player behaviors, including activation of the player's JavaScript API.
Parameters
related
Values: 0 or 1. Default is 0. Determines if the player loads related videos when the current video begins playback.
explicit
Values: 0 or 1. Default is 1. Determines if the player allows explicit content to be played. This parameter may be added to embed code by platforms which do not want explicit content to be posted by their users.
autoplay
Values: 0 or 1. Default is 0. Determines if the video will begin playing automatically when the player loads.
enablejsapi
Values: 0 or 1. Default is 0. Enable the Javascript API by setting this parameter to 1. For more information and instructions on using the Javascript API, see the JavaScript API documentation.
playerapiid
This value may be any alphanumeric string; it is used in conjunction with the JavaScript API. For details see the JavaScript API documentation.
colors
Player color changes may be set using color codes. The color name and its values are separated by a colon ":" and name:value pairs are separated by semi-colon ";". A color is described by its hexadecimal value (eg: 000000 for black), optionally followed by a comma "," and number from 0 to 100 to define the alpha value.
It is possible to define color variables and refer to them in other color definitions by preceding the name of the variable by a dollar sign ($).
Available color names are as follows:
Main Colors (used by others):
- background
- glow
- forground
- special
Other Colors:
- ctrl_glow
- ctrl_bckg
- ctrl_btn_bckg_up
- ctrl_btn_bckg_over
- ctrl_btn_bckg_down
- ctrl_btn_bckg_dis
- ctrl_btn_fgrd_up
- ctrl_btn_fgrd_over
- ctrl_btn_fgrd_down
- ctrl_btn_fgrd_dis
- ctrl_btn_menu_bckg_up
- ctrl_btn_menu_bckg_over
- ctrl_btn_menu_bckg_down
- ctrl_btn_menu_bckg_dis
- ctrl_btn_menu_glow_up
- ctrl_btn_menu_glow_over
- ctrl_btn_menu_glow_down
- ctrl_btn_menu_glow_dis
- ctrl_btn_menu_fgrd_up
- ctrl_btn_menu_fgrd_over
- ctrl_btn_menu_fgrd_down
- ctrl_btn_menu_fgrd_dis
- ctrl_sep
- ctrl_vol_fgrd
- ctrl_vol_bckg
- ctrl_vol_brdr
- timecode
- seek_bar_bckg
- seek_bar_load
- seek_bar_pos
Example Usage
To use any of the parameters above, add them to the end of a Dailymotion video SWF URL.
The canonical SWF URL should look like this:
http://www.dailymotion.com/swf/VIDEO_ID
SWF URLs can be programmatically accessed through one of the Dailymotion RSS feeds by looking for the type="application/x-shockwave-flash" <media:content> URL. This format will not be available if embedding has been disabled by the uploader.
<media:content url="http://www.dailymotion.com/swf/VIDEO_ID" type="application/x-shockwave-flash" />
To change the color scheme to a nice glossy black theme, modify the two color parameters:
http://www.dailymotion.com/swf/VIDEO_ID&colors=background:000000;glow:ffffff;forground:ffffff,80;special:ffffff
Now, place the modified URL into your embed code:
<object width="480" height="291"> <param name="movie" value="http://www.dailymotion.com/swf/VIDEO_ID&related=1&colors=background:000000;glow:ffffff;forground:ffffff,80;special:ffffff"></param> <param name="allowFullScreen" value="true"></param> <param name="allowScriptAccess" value="always"></param> <embed src="http://www.dailymotion.com/swf/k6X0BGczMLVliZQnV6&related=1&canvas=medium" type="application/x-shockwave-flash" width="480" height="291" allowFullScreen="true" allowScriptAccess="always"></embed> </object>