Skip to content

Embed Parameters

Gustavo Barbosa edited this page Feb 26, 2015 · 2 revisions

All parameters listed below shall be added on Clappr.Player object instantiation. Example:

var player = new Clappr.Player({
  source: "http://your.video/here.mp4",
  parameter1: "value1",
  parameter2: "value2",
});
Parameter Type Default Discussion
autoPlay Boolean true if video should automatically play after page load
autoPlayVisible Boolean partial if video should play automatically when it is partially appearing on the screen. full to auto play only when it is full visible
chromeless Boolean false true if you want the player to act in chromeless mode.
height Integer
hideMediaControl Boolean true false to disable media control auto hide
hideVolumeBar Boolean false true to hide volume bars
mediacontrol Object you can customize control bar colors adding the mediacontrol hash, eg: mediacontrol: {seekbar: "#E113D3", buttons: "#66B2FF"}
mute Boolean false true if you want to start player with no sound
persistConfig Boolean true false if you don't want to persist player's volume through your videos, by default it saves. These configuration are being saved at user's browser (through localStorage).
preload String In case you're loading a on demand video (mp4), it's possible to define the way the video will be preloaded according to preload attribute options. Add preload: <type> on embed parameters. By default, Clappr will try to download only video metadata (preload: 'metadata').
width Integer