@ -1,9 +1,9 @@
<template>
<div class="video-box">
<video v-if="this.src.endsWith('.mp4')" width="100%" height="100%" controls loop autoplay muted :poster="poster">
<video v-if="src.endsWith('.mp4')" width="100%" height="100%" controls loop autoplay muted :poster="poster">
<source :src="src" type="video/mp4">
</video>
<img v-if="!this.src.endsWith('.mp4')" width="100%" height="100%" :src="src" />
<img v-if="!src.endsWith('.mp4')" width="100%" height="100%" :src="src">
</div>
</template>