Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
289 Zobrazení

Dear All,

I have an Odoo E-Learning website running on both Odoo 15 and 17 versions. For video content, I uploaded the videos to a private YouTube channel with an unlisted status. However, when learners watch the video courses, they are redirected to the YouTube channel. I don’t want this and want the learning videos to be accessible only within the Odoo E-Learning website (frontend view). How can I achieve this?  Your help would be highly appreciated and valuable. Thank you 

Avatar
Zrušit
Nejlepší odpověď


Hi Wint,

This happens because YouTube controls playback links, even with “unlisted” videos, clicking the YouTube logo or video title redirects viewers to the YouTube site. Unfortunately, Odoo simply embeds the YouTube iframe, so this behavior comes from YouTube itself.

Here are your best options to stop or limit redirection:

  1. Use the “embed” link format instead of the normal YouTube URL.
    Example:
    https : // www.youtube.com/embed/VIDEO_ID?rel=0&modestbranding=1&controls=1
    This disables clickable titles and minimizes external links.
  2. Host videos privately instead of YouTube.
    Upload them to Odoo’s own file storage, Vimeo (private mode), or another video CDN, then link them in your courses. Vimeo’s “domain-level privacy” feature is especially good for this.
  3. Custom solution:
    A developer can create a small module that strips clickable overlays from YouTube iframes and disables navigation to youtube.com entirely.

If you want full control and no redirection at all, the only reliable option is to self-host or use a private video service (like Vimeo or BunnyStream) instead of YouTube.


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
říj 25
442
0
říj 25
180
2
srp 25
3724
1
čvc 25
1805
1
srp 25
1153