I have multiple video files on my actual vue project. Each video has some rule which is controlled by v-if.
If v-if is true, then only I need to download the video file.
Currently what is happening is, even though we have v-if set to false, the video file is downloaded from network. Is there a way to stop this behavior ?
<script src="https://unpkg.com/vue"></script>
<div id="app">
<video v-if="showVideo" autoplay loop muted width="450" src="https://www.w3schools.com/tags/movie.mp4"></video>
<video v-if="showVideo" autoplay loop muted width="450" src="https://www.w3schools.com/tags/movie.mp4"></video>
<div>
</div>
</div>
Sample JS fiddle: https://jsfiddle.net/sajuthankathurai/62n5erju/26/
