Player setup

This page explains how to configure afterglow via some basic player parameters

📘

All parameters on this page are optional

For a working player, you don't need more than the four mandatory parameters. All parameters on this page are optional, that means you don't have to use them.

The following player parameters will help you setting up your player.


data-volume="XX"

If you pass this parameter to your video element, afterglow will set the initial volume of the player instance to the given value. You should provide a float value ranging from 0 (muted) to 1 (full volume)

If omitted, the player volume will default to 1.

You can see an example of how to set the initial volume here.


data-skin="dark|light"

If you pass this parameter to your video element, afterglow will apply a dark or a light skin to the player controls.

If omitted, afterglow will apply it's default skin.

There is an example available, look here.