From 1918797b1afde95b6272d63643fd5ea43d543ab5 Mon Sep 17 00:00:00 2001 From: Simon Caminada Date: Thu, 14 Oct 2021 09:45:03 +0200 Subject: [PATCH] fix vimeo autoplay --- private/js/modules/plugins/video.js | 4 +--- src/project/templates/project/plugins/content/video.html | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/private/js/modules/plugins/video.js b/private/js/modules/plugins/video.js index 5de4368..b856357 100755 --- a/private/js/modules/plugins/video.js +++ b/private/js/modules/plugins/video.js @@ -12,9 +12,7 @@ $(function() { if (is_playing) { player.pause(); } else { - window.setTimeout(function() { - player.play(); - }, 250); + player.play(); } }); diff --git a/src/project/templates/project/plugins/content/video.html b/src/project/templates/project/plugins/content/video.html index d5221ac..2219b58 100644 --- a/src/project/templates/project/plugins/content/video.html +++ b/src/project/templates/project/plugins/content/video.html @@ -1,7 +1,7 @@ {% load i18n thumbnail util_tags %}
- + {% include 'project/assets/play.svg' %}