<template>
  <video
    :src="src"
    controls
    :style="style"
    class="video"
  />
</template>
<script setup>
const props = defineProps({
  src: {
    type: String,
    required: true
  },
  poster: {
    type: String,
    default: ''
  },
  style: {
    type: Object,
    default: () => ({
      width: '100%',
      height: '100%'
    })
  }
})
</script>