{"_id":"59bba3e215d1e1002426166f","category":{"_id":"59bba3e115d1e10024261656","version":"59bba3e115d1e10024261652","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":"59bba3e115d1e10024261652","project":"55e6dcb32d0d3021000daf70","__v":1,"createdAt":"2017-09-15T09:56:49.752Z","releaseDate":"2017-09-15T09:56:49.752Z","categories":["59bba3e115d1e10024261653","59bba3e115d1e10024261654","59bba3e115d1e10024261655","59bba3e115d1e10024261656","59bba3e115d1e10024261657"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-09-07T10:11:38.289Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":5,"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]\nIf you are using afterglow to [launch your player in a lightbox](doc:lightbox-player), you might want to customize the behaviour of the lightbox. Here are some parameters to do so.\n\n---\n\n> data-overscale=\"false\"\n\nWhen passing this parameter to the `<video>` element, afterglow will not overscale your video when playing it in a lightbox. The lightbox will scale to fit into the screen but have a maximum width and height, which are defined by the [*width* and *height* parameters](doc:mandatory-parameters).\n\nIf omitted, the player will scale the lightbox as large as possible while fitting it into the screen size.\n\nYou can see an example of a non-overscaling lightbox player [here](doc:launching-in-a-lightbox) (second example on the page).\n\n---\n\n> data-autoclose=\"true\"\n\nWhen passing this parameter to the `<video>` element, the lightbox will automatically be closed when the video has been played completely.\n\nIf omitted, the player will stop playback and show the poster frame (if there is one) when finished.\n\n---","excerpt":"This page explains how to enable afterglow's reponsive scaling feature.","slug":"lightbox-setup","type":"basic","title":"Lightbox setup"}

Lightbox setup

This page explains how to enable afterglow's reponsive scaling feature.

[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] If you are using afterglow to [launch your player in a lightbox](doc:lightbox-player), you might want to customize the behaviour of the lightbox. Here are some parameters to do so. --- > data-overscale="false" When passing this parameter to the `<video>` element, afterglow will not overscale your video when playing it in a lightbox. The lightbox will scale to fit into the screen but have a maximum width and height, which are defined by the [*width* and *height* parameters](doc:mandatory-parameters). If omitted, the player will scale the lightbox as large as possible while fitting it into the screen size. You can see an example of a non-overscaling lightbox player [here](doc:launching-in-a-lightbox) (second example on the page). --- > data-autoclose="true" When passing this parameter to the `<video>` element, the lightbox will automatically be closed when the video has been played completely. If omitted, the player will stop playback and show the poster frame (if there is one) when finished. ---