Skip to main content

Volume

To add volume controls to your video you need a volumeButton and a volumeBar.

There is one volumeButton component

  1. "volumeButton1"

Volume Button 1

There are two volumeBar components

  1. "volumeBar1"
  2. "volumeBar2"

Volume Bar 1

Volume Bar 2

Usage

item1: {
id: 'volumeButton1',
barId: 'volumeBar2',
volumeColor: '#a4c3f5',
barColor: "white",
buttonColor: "#a4c3f5",
scrubberColor: "#a4c3f5",
scrubberBorderColor: "white"
},

Properties

Property NameRequiredAccepted ValuesDescriptionDefault
idYes"volumeButton1"Used to render a volumeButton.undefined
buttonColorNoAny hex or rgb color codeChanges the color of the volumeButton.Calculated from controlsBar barColor property
barIdNo (No volumeBar will be shown if this is undefined)"volumeBar1" or "volumeBar2"volumeBar1 is horizontal and volumeBar2 is vertical.undefined
barColorNoAny hex or rgb color codeChanges the background color of the volumeBar."white"
volumeColorNoAny hex or rgb color codeChanges the color of the volumeBar volume progress."#4ab860"
scrubberColorNoAny hex or rgb color codeChanges the color of the volumeBar scrubber (the circle at the end of the volume progress).Same as the volumeColor if defined or "white"
scrubberBorderColorNoAny hex or rgb color codeChanges the border color of the volumeBar scrubber.A lightened version of the scrubberColor
hideOnMobileNotrue or falseHides the volumeButton component when the video's width is less than 768pxfalse
marginLeftNoA string css value for the marginLeft property, ex: '10px', '10rem'Changes the left margin of the volumeButton"0"
marginRightNoA string css value for the marginRight property, ex: '10px', '10rem'Changes the left margin of the volumeButton"0"