K
K
kuzubina2020-08-25 12:27:19
Vue.js
kuzubina, 2020-08-25 12:27:19

How to include static video in Vue.js?

Hello!
Please tell me how to connect a static video file through html markup in vue.js (I use vue cli)
There is a usual markup:

<video>
   <source src="assets/video/demo.MP4" type="video/mp4">
</video>

The file to which I connect it is located in the src/views/faq.vue folder
Full path to the video file src/assets/video/demo.MP4

The video is not displayed either in development mode or when building the project

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question