{"_id":"59fb30941a8c8d002837cece","category":{"_id":"59fb30931a8c8d002837cec3","version":"59fb30931a8c8d002837cec0","project":"55e6dcb32d0d3021000daf70","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-09-04T14:49:28.154Z","from_sync":false,"order":2,"slug":"player-parameters","title":"Parameters"},"project":"55e6dcb32d0d3021000daf70","user":"55e6dc8a2d0d3021000daf6e","parentDoc":null,"version":{"_id":"59fb30931a8c8d002837cec0","project":"55e6dcb32d0d3021000daf70","__v":2,"createdAt":"2017-11-02T14:49:55.750Z","releaseDate":"2017-11-02T14:49:55.750Z","categories":["59fb30931a8c8d002837cec1","59fb30931a8c8d002837cec2","59fb30931a8c8d002837cec3","59fb30931a8c8d002837cec4","59fb30931a8c8d002837cec5","59fb3502e786cb001c45ec9d"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.1.0","version":"1.1"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-09-04T12:02:23.107Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":8,"body":"afterglow will work mostly by itself, but you can change how it behaves by using player parameters. \n\nThere are four [mandatory parameters](doc:mandatory-parameters) which you **must** pass to the video element, and there are some other parameters you might want to know.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"How to apply parameters\"\n}\n[/block]\nAll parameters you want to use must be applied to the video element. Like this.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<video class=\\\"parameters\\\" id=\\\"go-here\\\" width=\\\"XY\\\" height=\\\"XY\\\" some-other-parameter=\\\"some-value\\\">\\n\\t<!-- sources here -->\\n</video>\",\n      \"language\": \"html\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Exception from the rule: resolution switching\",\n  \"body\": \"There is one parameter, that is actually applied to the sources and not to the player itself. You can read more about resolution switching in the [video sources guide](doc:video-sources).\"\n}\n[/block]","excerpt":"This page will show you how to apply parameters to afterglow.","slug":"player-parameters","type":"basic","title":"How to use parameters"}

How to use parameters

This page will show you how to apply parameters to afterglow.

afterglow will work mostly by itself, but you can change how it behaves by using player parameters. There are four [mandatory parameters](doc:mandatory-parameters) which you **must** pass to the video element, and there are some other parameters you might want to know. [block:api-header] { "type": "basic", "title": "How to apply parameters" } [/block] All parameters you want to use must be applied to the video element. Like this. [block:code] { "codes": [ { "code": "<video class=\"parameters\" id=\"go-here\" width=\"XY\" height=\"XY\" some-other-parameter=\"some-value\">\n\t<!-- sources here -->\n</video>", "language": "html" } ] } [/block] [block:callout] { "type": "warning", "title": "Exception from the rule: resolution switching", "body": "There is one parameter, that is actually applied to the sources and not to the player itself. You can read more about resolution switching in the [video sources guide](doc:video-sources)." } [/block]