{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","results":{"codes":[]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"Player setup","type":"basic","slug":"player-setup","excerpt":"This page explains how to configure afterglow via some basic player parameters","body":"[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"All parameters on this page are optional\",\n  \"body\": \"For a working player, you don't need more than the four [mandatory parameters](doc:mandatory-parameters). All parameters on this page are optional, that means you don't have to use them.\"\n}\n[/block]\nThe following player parameters will help you setting up your player.\n\n---\n\n> data-volume=\"XX\"\n\nIf 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)\n\nIf omitted, the player volume will default to 1. \n\nYou can see an example of how to set the initial volume [here](doc:setting-the-initial-sound-volume).\n\n---\n\n> data-skin=\"*dark*|*light*\"\n\nIf you pass this parameter to your video element, afterglow will apply a *dark*  or a *light* skin to the player controls.\n\nIf omitted, afterglow will apply it's default skin.\n\nThere is an example available, look [here](doc:using-dark-or-light-skin). \n\n---","updates":[],"order":11,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"59fb30941a8c8d002837ced1","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Parameters","slug":"player-parameters","order":2,"from_sync":false,"reference":false,"_id":"59fb30931a8c8d002837cec3","version":"59fb30931a8c8d002837cec0","project":"55e6dcb32d0d3021000daf70","createdAt":"2015-09-04T14:49:28.154Z","__v":0},"project":"55e6dcb32d0d3021000daf70","user":"55e6dc8a2d0d3021000daf6e","parentDoc":null,"version":{"version":"1.1","version_clean":"1.1.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["59fb30931a8c8d002837cec1","59fb30931a8c8d002837cec2","59fb30931a8c8d002837cec3","59fb30931a8c8d002837cec4","59fb30931a8c8d002837cec5","59fb3502e786cb001c45ec9d"],"_id":"59fb30931a8c8d002837cec0","project":"55e6dcb32d0d3021000daf70","createdAt":"2017-11-02T14:49:55.750Z","releaseDate":"2017-11-02T14:49:55.750Z","__v":2},"createdAt":"2015-09-14T07:09:48.615Z","githubsync":"","__v":0}

Player setup

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

[block:callout] { "type": "info", "title": "All parameters on this page are optional", "body": "For a working player, you don't need more than the four [mandatory parameters](doc:mandatory-parameters). All parameters on this page are optional, that means you don't have to use them." } [/block] 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](doc:setting-the-initial-sound-volume). --- > 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](doc:using-dark-or-light-skin). ---