Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
557 Vistas

Hi,

I'm trying to add a video on a webpage, but getting the following error. I've added numerous other videos (youtube/vimeo) before, but this time not.

Odoo Client Error

UncaughtPromiseError > OwlError


Uncaught Promise > Invalid props for component 'VideoSelector': 'media' is not a object


Occured on mycompany.com on 2025-05-15 06:59:56 GMT


OwlError: Invalid props for component 'VideoSelector': 'media' is not a object

    OwlError@https://mycompany.com/web/assets/8/debug/web.assets_web.js:8078:5 (/web/static/lib/owl/owl.js:87)

    validateProps@https://mycompany.com/web/assets/8/debug/web.assets_web.js:11205:19 (/web/static/lib/owl/owl.js:3214)

    template@https://mycompany.com/web/assets/8/debug/web.assets_web.js line 13743 > Function:53:17 (/web/static/lib/owl/owl.js:5752)

    _render@https://mycompany.com/web/assets/8/debug/web.assets_web.js:9774:38 (/web/static/lib/owl/owl.js:1783)

    render@https://mycompany.com/web/assets/8/debug/web.assets_web.js:9766:18 (/web/static/lib/owl/owl.js:1775)

    initiateRender@https://mycompany.com/web/assets/8/debug/web.assets_web.js:10446:23 (/web/static/lib/owl/owl.js:2455)


Any suggestions how to fix?

Avatar
Descartar
Mejor respuesta

If you're using Studio or XML/JS customization:
media: {

    type: 'video',

    videoType: 'youtube',  // or 'vimeo'

    videoId: 'dQw4w9WgXcQ',  // actual ID from YouTube or Vimeo

}

Check where you're adding the video (likely in a custom widget, template, or JSON field), and make sure media is a proper object as shown above.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
oct 24
2751
1
abr 25
799
1
dic 22
6646
0
jul 25
274
0
jul 25
905