[FIX] website_slides: Complete courses with video

What are the steps to reproduce your issue ?

    1. Install ELearning
    2. Create a course
    3. Add a video from youtube
    4. Attempt to do the course from a user that is invited

What is currently happening ?

    You cannot complete a video (turn the checkmark green) if there is not a quiz. Therefore you cannot complete the course

What are you expecting to happen ?

    Turn the checkmark green to signify that video is completed after watching the video and then have the ability to complete the course

Why is this happening ?

    Because of this commit https://github.com/odoo/odoo/pull/61581/files
    that changes 'youtube.com' to 'youtube-nocookie.com'

How to fix the bug ?

    Remove host

opw-2418545

closes odoo/odoo#63878

X-original-commit: 484957caf89e0f324dffda6f2ac0a1ca543b969b
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
This commit is contained in:
Achraf (abz)
2020-12-29 11:29:08 +00:00
parent 03c3996ef5
commit 7c7822bd7d
@@ -75,7 +75,6 @@ odoo.define('website_slides.fullscreen', function (require) {
*/
_setupYoutubePlayer: function (){
this.player = new YT.Player('youtube-player' + this.slide.id, {
host: 'https://www.youtube.com',
playerVars: {
'autoplay': 1,
'origin': window.location.origin