Set one or more of the following video attributes after the player has already been set up
Set one or more of the following video attributes after the player has already setup.
setConfig({
"repeat": true,
"autostart": "viewable",
"mute": false,
"volume": 25
});| Property | Description |
|---|---|
| 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 string | When 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.Default: false |
| floating object | Updates the floating player behavior after player setup
When floating.devices is configured, setting floating.mode to always or never does not override existing device-level enabled settings. To change floating behavior, explicitly configure enabled for each device.Player 8.49.0ā8.49.9 Examples
|
| height 8.10.0+ number | Desired height of your video player (in pixels) Should not be used with aspectratio.Default: 360 |
| mute boolean | Toggles the player's mute attribute Default: false |
| repeat boolean | When true, starts playing the first playlist item after the playlist completesDefault: false |
| stretching 8.10.0+ string | Resize images and video to fit player dimensions
|
| volume number | Sets the volume of the player between 1-100 |
| width 8.10.0+ number | string | Desired width of your video player (in pixels or percentage) Default: 640 |
