|
@ -1,9 +1,9 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="video-box"> |
|
|
<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"> |
|
|
<source :src="src" type="video/mp4"> |
|
|
</video> |
|
|
</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> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|