b72be1fc95656ad98ab11e8fb193b940abc3d829
Steps to reproduce: - Log in as admin - Install `eLearning` module - Create a course and add a youtube video as a lesson - Publish the course - Go to the website and click on the course - Enable `Editor` mode (top left corner) - Click on lesson to open it in fullscreen - Click `Back to course` button Issue: Video is playing in the background. Same issue occure with video snippet in the website editor (by default video is mute but still playing in the background). Cause: When editor mode is enabled, there is a fallback iframe that clone the content of the current page that we leave into it. Since the youtube video has `autoplay=1` in the URL, it will automatically start in the fallback iframe. Solution: For regular website pages, remove the `autoplay` param from all media video iframes urls (targeting all `div.iframe` that have a class `media_iframe_video`). For eLearning, override the `WebsitePreview._cleanIframeFallback` method to remove the `autoplay` param from youtube videos URLs. opw-3226002 closes odoo/odoo#121475 X-original-commit: ad78585cd514f5ff16647572d34937c18a112529 Signed-off-by: Romain Derie (rde) <rde@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%