# dnd\_module video can't make it work in template

**URL:** <https://community.hubspot.com/t/dnd-module-video-cant-make-it-work-in-template/92687>\
**Category:** CMS Development\
**Tags:** developer\
**Created:** [October 26, 2023, 6:12pm UTC](https://community.hubspot.com/t/dnd-module-video-cant-make-it-work-in-template/92687 "2023-10-26T18:12:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GooseMan](https://avatars.discourse-cdn.com/v4/letter/g/58956e/32.png) [@GooseMan](https://community.hubspot.com/u/GooseMan)\
**Post date:** [October 26, 2023, 6:12pm UTC](https://community.hubspot.com/t/dnd-module-video-cant-make-it-work-in-template/92687/1 "2023-10-26T18:12:39Z")

</div>

I am trying to make a template with some dnd areas and columns. In one of those columns I want to embed a video player which I want a default video and the chance to change it when the user selects this template.

 ![GooseMan_0-1698343703793.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/9/29ef0b72d4fc9093019939d0ead290c24b4d1edb.png)

 ![GooseMan_1-1698343723933.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/3/348afc8c4e23a190eab3fd9467fd116df4ce82d3.png)

1. Why is Design Manager showing these error?

2. Where is the doc regarding this issue?

I havent found a concrete answer as to why is this an error, see attached images, I’ve looked at these and found nothing:

> **[Default web modules - HubSpot docs](https://developers.hubspot.com/docs/cms/reference/modules/default-modules)**
>
> Learn about the default modules that HubSpot provides for creating website page, blog post, and blog listing templates. These modules are separate from default email modules, which are for email templates.

> **[Drag and Drop Areas HubL Tags - HubSpot docs](https://developers.hubspot.com/docs/cms/reference/hubl/tags/dnd-areas)**
>
> The HubL tags used to build drag and drop areas that allow developers to create sections of pages that support layout, stylistic and content changes directly within the content editors.

> **[HubL standard tags - HubSpot docs](https://developers.hubspot.com/docs/cms/reference/hubl/tags/standard-tags)**
>
> Reference documentation for syntax and available parameters for all HubL tags.

---

<div class="post-metadata">

**Author:** ![Stephanie-OG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stephanie-og/32/73267_2.png) [@Stephanie-OG](https://community.hubspot.com/u/Stephanie-OG)\
**Post date:** [October 27, 2023, 3:16pm UTC](https://community.hubspot.com/t/dnd-module-video-cant-make-it-work-in-template/92687/2 "2023-10-27T15:16:48Z")

</div>

Hi @GooseMan

The `embed_field` isn’t a text field, it supports oembed or html types.

It’s tricky to find exactly how to use this in the documentation although [this page on oembed](https://developers.hubspot.com/docs/cms/building-blocks/module-theme-fields/oembed) and familiarity with [the embed field](https://developers.hubspot.com/docs/cms/building-blocks/module-theme-fields) helps.

I forget exactly how I figured it out in past projects (I likely used [`?developerMode=true`](https://developers.hubspot.com/docs/cms/developer-reference/debugging-and-errors#developer-mode-in-the-page-editor) in a page’s content editor and copied HTML from the section), but I’ve used the code below for the video module and it should work:

```lia-code-sample
{% dnd_module path="@hubspot/video"
 video_type="embed",
 embed_field={
 "source_type": "oembed",
 "oembed_url": "https://www.youtube.com/watch?v=YisYnpF57DE",
 "oembed_response": {
 "provider_url": "https://www.youtube.com/",
 "width": "560",
 "height": "315",
 "html": "<iframe width='560' height='315' src='https://www.youtube.com/embed/YisYnpF57DE?si=dCG6bwkMk-ZyVXDG' title='YouTube video player' frameborder='0' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share' allowfullscreen></iframe>",
 "thumbnail_width": "560",
 "version": "1.0",
 "title": "Disfruta de los beneficios que tus paneles pueden brindar a tu familia.",
 "provider_name": "YouTube",
 "type": "video",
 "thumbnail_height": "315",
 "author_url": "https://www.youtube.com/@energonsolarmx",
 "thumbnail_url": "",
 "author_name": "ENERGON SOLAR"
 },
 "width": 560,
 "height": 315,
 "size_type": "auto_full_width",
 "max_width": 560,
 "max_height": 315
 }
%}
{% end_dnd_module %}

```

You can probably strip away a lot of that information too.

I hope that helps!

Update to note that I wrote a post on [customizing the embedded video in a HubSpot Video module](https://www.stephanieogaygarcia.com/hubspot-website-development/customize-the-embedded-video-in-a-hubspot-video-module) based on the above reply.
