

If autoplay is true, the video will start playing as soon as page is loaded (without any interaction from the user).

Without controls the only way to start the video playing is with the autoplay attribute or through the API. The controls option sets whether or not the player has controls that the user can interact with. If you need the attribute to include an equals sign for XHTML validation, you can set the attribute's value to the same as its name (e.g. controls="false") which actually does the opposite and sets the value to true because the attribute is still included. The biggest issue people run into is trying to set these values to false using false as the value (e.g. With HTML5 video tag attributes that can only be true or false (boolean), you simply include the attribute (no equals sign) to turn it on, or exclude it to turn it off. Individual Options Note on Video Tag Attributes

įinally, if you're not using the data-setup attribute to trigger the player setup, you can pass in an object with the player options as the second argument in the javascript setup function. This is also how you would set options that aren't standard to the video tag. Īlternatively, you can use the data-setup attribute to provide options in the JSON format.
#Video not playing lightgallery code
The Video.js embed code is simply an HTML5 video tag, so for many of the options you can use the standard tag attributes to set the options.
