From 052e426810d504a01beb05c8bb34f83e190a0679 Mon Sep 17 00:00:00 2001 From: Christian Gambardella Date: Thu, 24 Jan 2019 12:07:01 +0100 Subject: [PATCH] Adds options for vimeo plugin #1316 This adds replaces hard coded vimeo options with options that can be passed to the Plyr instance when initializing. --- demo/src/js/demo.js | 3 +++ readme.md | 1 + src/js/config/defaults.js | 9 +++++++++ src/js/plugins/vimeo.js | 10 +++++----- 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/demo/src/js/demo.js b/demo/src/js/demo.js index e4dabde6..7cc22434 100644 --- a/demo/src/js/demo.js +++ b/demo/src/js/demo.js @@ -85,6 +85,9 @@ import Raven from 'raven-js'; 'https://cdn.plyr.io/static/demo/thumbs/240p.vtt', ], }, + vimeo: { + transparent: true, + }, }); // Expose for tinkering in the console diff --git a/readme.md b/readme.md index 86537481..50a81bd0 100644 --- a/readme.md +++ b/readme.md @@ -335,6 +335,7 @@ Note the single quotes encapsulating the JSON and double quotes on the object ke | `loop` | Object | `{ active: false }` | `active`: Whether to loop the current video. If the `loop` attribute is present on a `