mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 06:53:29 +09:00
first
This commit is contained in:
34
documentation/plugins/video/video-base-documentation.md
Normal file
34
documentation/plugins/video/video-base-documentation.md
Normal file
@@ -0,0 +1,34 @@
|
||||
### Video Player 1:1
|
||||
|
||||
We wrote a custom vue wrapper for the `Plyr` video player vanilla js library. It
|
||||
is really easy to setup. Change the video ratio using the `ratio` prop.
|
||||
Available ratios are `square`, `4by3` and `16by9`.
|
||||
|
||||
<!--code-->
|
||||
|
||||
```vue
|
||||
<template>
|
||||
<VPlyr
|
||||
ratio="square"
|
||||
source="https://www.youtube.com/embed/lE5VNpP8JqA?modestbranding=1&rel=0&showinfo=0"
|
||||
poster="/video/poster-1c.jpg"
|
||||
embed
|
||||
/>
|
||||
</template>
|
||||
```
|
||||
|
||||
<!--/code-->
|
||||
|
||||
<!--example-->
|
||||
|
||||
<div>
|
||||
<VPlyr class="ml-1"
|
||||
ratio="square"
|
||||
source="https://www.youtube.com/embed/lE5VNpP8JqA?modestbranding=1&rel=0&showinfo=0"
|
||||
poster="/video/poster-1c.jpg"
|
||||
reversed
|
||||
embed
|
||||
/>
|
||||
</div>
|
||||
|
||||
<!--/example-->
|
||||
Reference in New Issue
Block a user