From bd8b617cbbbe82a0c1948c4f8e6089f3f6b2d1e9 Mon Sep 17 00:00:00 2001 From: Cellcrowd Date: Wed, 18 Nov 2020 17:11:38 +0100 Subject: [PATCH] Enabling inline argument for canAutoPlay --- src/components/vimeo-video.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/vimeo-video.js b/src/components/vimeo-video.js index 81060be..f90f4c9 100644 --- a/src/components/vimeo-video.js +++ b/src/components/vimeo-video.js @@ -27,7 +27,7 @@ export default class VimeoVideo extends EventEmitter { this.loop = typeof args.loop !== 'undefined' ? args.loop : true if (this.autoplay) { - canAutoPlay.video({ muted: this.muted, timeout: 1000 }).then(({ result, error }) => { + canAutoPlay.video({ muted: this.muted, timeout: 1000, inline: true }).then(({ result, error }) => { if (result === false) { console.warn('[Vimeo] Autoplay not available on this browser', error) this.autoplay = false