Static GitHub Issues

[2008] Load video from assets folder

prev: Despite SSR = false, ... Error "ReferenceError: document is not defined"
next: SSR render catch ?

I'm not able to load a video from assets folder, I know this might be solved in #1224. I tried both ~/assets/... and ~assets/... but I can't make it work.

My component:

<template>
  <div>
    <video src="~assets/video.mp4">
      <p>Your browser does not support the video tag.</p>
    </video>
  </div>
</template>

My assets folder: assetsfolder

Am I doing something wrong?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1783">#c1783</a>)</em></sub></div>