mirror of
https://github.com/webslides/WebSlides.git
synced 2025-09-03 10:02:58 +02:00
Updated Plugin docs (markdown)
@@ -55,5 +55,20 @@ Example:
|
||||
<source src="https://webslides.tv/static/videos/peggy.mp4" type="video/mp4">
|
||||
</video>
|
||||
```
|
||||
The video will play when you enter on that Slide and it will automatically pause whenever you exit from the slide.
|
||||
|
||||
The video will play when you enter on that Slide and it will automatically pause whenever you exit from the slide.
|
||||
## YouTube
|
||||
|
||||
YouTube unfortunately can't be handled as normal videos since we need the API to make them work, so we added a special _syntax_ so you can control YouTube videos automatically with WebSlides.
|
||||
|
||||
```html
|
||||
<div data-youtube
|
||||
data-youtube-id="SomZsr1J7ao"
|
||||
data-autoplay
|
||||
data-loop
|
||||
data-mute
|
||||
data-no-controls>
|
||||
</div>
|
||||
```
|
||||
|
||||
Those are all the options that you can pass. We're saying there, we want the video with _id_ `SomZsr1J7ao` to _autoplay_ when the Slide gets active, to _loop_ forever, to be _mute_d and to have _no-controls_.
|
Reference in New Issue
Block a user