From 2c239dec003119869707168dcf9cef2025f4fae6 Mon Sep 17 00:00:00 2001 From: "Guillaume (gdi)" Date: Mon, 2 Jan 2023 08:30:33 +0000 Subject: [PATCH] [FIX] web_editor: allow multiple autoplay vimeo videos Before this commit, it was not possible to have two vimeo videos playing at the same time on the same page. Steps to reproduce the bug: - Drop two blocks containing an image - Replace the two images with vimeo videos - For each of these videos, enable the autoplay feature => Only one of these videos is played automatically. When you play the other one, the first one is paused and vice versa. It is impossible to have both videos running at the same time. This commit allows to correct this by allowing to play several vimeo videos at the same time when they have the autoplay feature activated. Note that if the option is not enabled, the behavior remains similar to before, only one video can be played at a time. opw-3107447 closes odoo/odoo#108945 X-original-commit: 9e9d8691826d5504f613f529ee998a22d1bf3888 Signed-off-by: Quentin Smetz (qsm) Signed-off-by: Guillaume-gdi --- addons/web_editor/tools.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web_editor/tools.py b/addons/web_editor/tools.py index 857ca380212..4a66907e0d2 100644 --- a/addons/web_editor/tools.py +++ b/addons/web_editor/tools.py @@ -89,6 +89,7 @@ def get_video_url_data(video_url, autoplay=False, loop=False, hide_controls=Fals params['autoplay'] = autoplay and 1 or 0 if autoplay: params['muted'] = 1 + params['autopause'] = 0 if hide_controls: params['controls'] = 0 if loop: