{"_id":"59bba7de15d1e10024261826","project":"55e6dcb32d0d3021000daf70","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"},"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"},"user":"55e6dc8a2d0d3021000daf6e","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-09-15T10:13:50.572Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":7,"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]\nPlaying Vimeo videos is quite easy with afterglow. Instead of adding regular sources to your `<video>` element, just provide this player parameter:\n\n---\n\n> data-vimeo-id=\"XXXXXXXX\"\n\nWhen passing this parameter to the `<video>` element, afterglow will play the Vimeo video which is associated with the id you provide. To get the id of a Vimeo video, watch out for its url, you will find the id there.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/0e4536b-Vimeo-ID.png\",\n        \"Vimeo-ID.png\",\n        600,\n        66,\n        \"#1b9e3a\"\n      ]\n    }\n  ]\n}\n[/block]\nIf omitted, the player will look out for other sources to play.\n\nYou can see an example of a Vimeo player [here](doc:playing-a-vimeo-video).\n\n---\n[block:callout]\n{\n  \"type\": \"danger\",\n  \"body\": \"Please be aware, that regular Vimeo videos cannot use any other player ui than the one provided by Vimeo. This is a premium feature, which you have to pay for. So the afterglow ui won't tune in for Vimeo videos.\"\n}\n[/block]","excerpt":"This page explains how to use afterglow to play a video hosted on Youtube.","slug":"vimeo-video","type":"basic","title":"Vimeo video"}

Vimeo video

This page explains how to use afterglow to play a video hosted on Youtube.

[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] Playing Vimeo videos is quite easy with afterglow. Instead of adding regular sources to your `<video>` element, just provide this player parameter: --- > data-vimeo-id="XXXXXXXX" When passing this parameter to the `<video>` element, afterglow will play the Vimeo video which is associated with the id you provide. To get the id of a Vimeo video, watch out for its url, you will find the id there. [block:image] { "images": [ { "image": [ "https://files.readme.io/0e4536b-Vimeo-ID.png", "Vimeo-ID.png", 600, 66, "#1b9e3a" ] } ] } [/block] If omitted, the player will look out for other sources to play. You can see an example of a Vimeo player [here](doc:playing-a-vimeo-video). --- [block:callout] { "type": "danger", "body": "Please be aware, that regular Vimeo videos cannot use any other player ui than the one provided by Vimeo. This is a premium feature, which you have to pay for. So the afterglow ui won't tune in for Vimeo videos." } [/block]