CMS Development

TMerkel
Colaborador

Video Player Conversion asset not showing form

resolver

Hi guys, i am not sure why, but the following code does not show my chosen form as a preroll:

(advanced video features turned on)

          {% video_player "embed_player" 
            overrideable=False 
            type={{ module.video.player_type || 'scriptV4' }} 
            full_width={{ module.video.size_type == 'auto_full_width' }} 
            hide_playlist=True 
            viral_sharing=False 
            embed_button=False 
            width='1920', height='1080' 
            player_id={{ item.video }} 
            conversion_asset={"type":"FORM","id":"{{ module.form.form_id }}","position":"PRE"}
            %}

 

Conversion Asset attribute seems not to understand the form_id. Could someone help me with this? 🙂 Thanks!

 

 

0 Me gusta
1 Soluciones aceptada
TMerkel
Solución
Colaborador

Video Player Conversion asset not showing form

resolver

I just found the solution for the problem. You need to set the variable and parse it as json like the following example:

 

          {% set conversion_assets = {"type":"FORM","id":module.form.form_id,"position":"PRE"} %}
          {% video_player "embed_player" 
            overrideable=False 
            type={{ module.video.player_type || 'scriptV4' }} 
            full_width={{ module.video.size_type == 'auto_full_width' }} 
            hide_playlist=True 
            viral_sharing=False 
            embed_button=False 
            auto_play=True 
            width='1920', height='1080' 
            player_id={{ item.video }} 
            conversion_asset={{ conversion_assets|tojson|safe }}
            %}

 

 

Ver la solución en mensaje original publicado

0 Me gusta
3 Respuestas 3
TMerkel
Solución
Colaborador

Video Player Conversion asset not showing form

resolver

I just found the solution for the problem. You need to set the variable and parse it as json like the following example:

 

          {% set conversion_assets = {"type":"FORM","id":module.form.form_id,"position":"PRE"} %}
          {% video_player "embed_player" 
            overrideable=False 
            type={{ module.video.player_type || 'scriptV4' }} 
            full_width={{ module.video.size_type == 'auto_full_width' }} 
            hide_playlist=True 
            viral_sharing=False 
            embed_button=False 
            auto_play=True 
            width='1920', height='1080' 
            player_id={{ item.video }} 
            conversion_asset={{ conversion_assets|tojson|safe }}
            %}

 

 

0 Me gusta
Jaycee_Lewis
Administrador de la comunidad
Administrador de la comunidad

Video Player Conversion asset not showing form

resolver

Hi, @TMerkel 👋 Thanks for your question. Hey. @Anton @Kevin-C, do you have any tips you can share with @TMerkel?

 

Thank you! — Jaycee


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
TMerkel
Colaborador

Video Player Conversion asset not showing form

resolver

Any news here? 🙂 Would be nice to have a solution for this issue. Thanks!

0 Me gusta