diff --git a/addons/web_editor/static/src/components/media_dialog/video_selector.js b/addons/web_editor/static/src/components/media_dialog/video_selector.js index 0b6e771cf3b..30dca19a6c5 100644 --- a/addons/web_editor/static/src/components/media_dialog/video_selector.js +++ b/addons/web_editor/static/src/components/media_dialog/video_selector.js @@ -35,7 +35,7 @@ export class VideoSelector extends Component { }, hide_controls: { label: this.env._t("Hide player controls"), - platforms: [this.PLATFORMS.youtube, this.PLATFORMS.dailymotion], + platforms: [this.PLATFORMS.youtube, this.PLATFORMS.dailymotion, this.PLATFORMS.vimeo], urlParameter: 'controls=0', }, hide_fullscreen: { diff --git a/addons/web_editor/tools.py b/addons/web_editor/tools.py index 2f3b1a63b4a..857ca380212 100644 --- a/addons/web_editor/tools.py +++ b/addons/web_editor/tools.py @@ -89,6 +89,8 @@ 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 + if hide_controls: + params['controls'] = 0 if loop: params['loop'] = 1 embed_url = f'//player.vimeo.com/video/{video_id}'