setConfig()

Set one or more of the following video attributes after the player has already setup.

Set one or more of the following video attributes after the player has already setup.

setConfig({
  "repeat": true,
  "autostart": "viewable",
  "mute": false,
  "volume": 25
});
PropertyDescriptionDefault
aspectratio 8.10.0+ string
Β Β Β Β Β Β Β Β Β Β Β  Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β 
Maintains proportions when width is a percentage

This property will not be used if the player has been configured with fixed dimensions. The value for this property must be entered in ratio x:y format.
-
autostart stringWhen true, playback will start automatically on desktop devices or when the player is 50% visible on mobile devices.

When set to viewable, playback will start automatically on desktop devices when the player is more than 50% visible in the active tab.
false
height 8.10.0+ numberDesired height of your video player (in pixels)

Should not be used with aspectratio.
360
mute booleanToggles the player's mute attributefalse
repeat booleanWhen true, starts playing the first playlist item after the playlist completesfalse
stretching 8.10.0+ stringResize images and video to fit player dimensions

Β Β β€’ uniform: Fits JW Player dimensions while maintaining aspect ratio

Β Β β€’ exactfit: Fits JW Player dimensions without maintaining aspect ratio

Β Β β€’ fill: Zooms and crops video to fill dimensions, maintaining aspect ratio

Β Β β€’ none: Displays the actual size of the video file (Black borders)
uniform
volume numberSets the volume of the player between 1-100-
width 8.10.0+ number | stringDesired width of your video player (in pixels or percentage)640