To embed a Donkeyclip video player on your website using an iframe, simply include the following HTML code and replace the src
attribute with the URL of the your donkeyclip:
<iframe
src="<your-donkeyclip-url>?controls"
width="640"
height="360"
frameborder="0"
allow="autoplay; fullscreen"
allowfullscreen
></iframe>
scaleToFit
(optional): A boolean or string value that, when set to true
, scales the clip to fit the player dimensions.mcVersion
(optional): A string specifying the version of the MotorCortex library to use.playerVersion
(optional): A string specifying the version of the Donkeyclip Player library to use.theme
(optional): A PlayerTheme
that sets the player’s theme. Read more hereinitParams
(optional): An stringified object containing DefinitionParams
for initializing the clip.visible
(optional): A string value "always"
indicating that the player should always be visible.ms
(optional): A number or string value representing the millisecond at which the clip should start playing.volume
(optional): A number or string value representing the volume level of the clip (0-1).speed
(optional): A number or string value representing the playback speed of the clip.backgroundColor
(optional): A string value representing the background color of the player.spinnerColor
(optional): A string value representing the color of the loading spinner.