Video resources

Hi there I try to import a resource video into my component I try in this way

<source src="/resources/{{myVideo}}" type="video/mp4">
{
"title": "Resource",
"id": "myVideo",
"resource": {
"accepts": "mp4"
}}

but when I inspect my page I see this

<source src="resources/vid@1024.png" type="video/mp4">

Why I see vid@1024.png instead vid.mp4?

Thanks in advance

Hi @Invisigoth

You need to use the path prop on the resource object, and there’s no need to prepend `resources/` to the src attribute. So, your template should look like this:

<source src="{{myVideo.path}}" type="video/mp4">

that should fix it, but if you’re still having issues do let me know :slight_smile:

1 Like

Perfect, work great, you are the best!

Thanks.

1 Like