{"_id":"59bba3e215d1e1002426166c","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-04T14:50:51.262Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"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]\nAs afterglow is based upon the HTML5 video element, there are several parameters that are supported by default.\n\n---\n\n> poster=\"*url to a file*\"\n\nYou can provide a poster frame which is displayed in the player area before the video has been started. This should be an image file matching the ratio of your player, if possible.\n\nIf not used, there won't be a poster frame except for Youtube videos.\n\nA quick example for a player using a poster frame can be found [here](doc:using-a-poster-frame).\n\n---\n\n> autoplay=\"autoplay\"\n\nIf you want your video to play automatically when loaded, you can pass this parameter. Be aware that mobile devices do not support this feature.\n\nIf not used, your player will wait for the user to click the play button.\n\n---\n\n> loop=\"loop\"\n\nYou can pass this parameter to make your video replay when it's finished.\n\nIf not passed, your player will not loop.\n\n---\n\n> preload=\"**auto**|metadata|none\"\n\nIf you think, that your video should not be preloaded as soon as the page is loaded, you might want to pass this parameter with the value \"*none*\". \n\nIf not passed, this defaults to **auto** and preloading will be handled by the browser.\n\n---","excerpt":"This page explains some of the basic HTML5 video parameters.","slug":"html5-video-parameters","type":"basic","title":"HTML5 video parameters"}

HTML5 video parameters

This page explains some of the basic HTML5 video 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] As afterglow is based upon the HTML5 video element, there are several parameters that are supported by default. --- > poster="*url to a file*" You can provide a poster frame which is displayed in the player area before the video has been started. This should be an image file matching the ratio of your player, if possible. If not used, there won't be a poster frame except for Youtube videos. A quick example for a player using a poster frame can be found [here](doc:using-a-poster-frame). --- > autoplay="autoplay" If you want your video to play automatically when loaded, you can pass this parameter. Be aware that mobile devices do not support this feature. If not used, your player will wait for the user to click the play button. --- > loop="loop" You can pass this parameter to make your video replay when it's finished. If not passed, your player will not loop. --- > preload="**auto**|metadata|none" If you think, that your video should not be preloaded as soon as the page is loaded, you might want to pass this parameter with the value "*none*". If not passed, this defaults to **auto** and preloading will be handled by the browser. ---