BlockVideoPlayer.vue 522 B

12345678910111213141516171819202122232425
  1. <template lang="pug">
  2. div(style='max-width: 760px;')
  3. Player(controls)
  4. Youtube(video-id='DyTCOwB0DVw', :autoplay='0')
  5. //- DefaultUi(noControls)
  6. //- DefaultControls(
  7. //- hideOnMouseLeave
  8. //- :activeDuration='2000'
  9. //- )
  10. </template>
  11. <script>
  12. import '@vime/core/themes/default.css'
  13. import { Player, Video, DefaultUi, DefaultControls, Youtube } from '@vime/vue-next'
  14. export default {
  15. components: {
  16. Player,
  17. Video,
  18. DefaultUi,
  19. DefaultControls,
  20. Youtube
  21. }
  22. }
  23. </script>