1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-09-25 04:11:41 +02:00

Updated Plugin docs (markdown)

Antonio Laguna
2017-04-19 20:33:22 +02:00
parent 82e8eddb25
commit b8f2a14ff2

@@ -57,6 +57,8 @@ Example:
```
The video will play when you enter on that Slide and it will automatically pause whenever you exit from the slide.
**Note**: Autoplaying won't work on mobile devices as this is enforced by the devices to avoid wasting data.
## 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.
@@ -74,3 +76,5 @@ YouTube unfortunately can't be handled as normal videos since we need the API to
Those are all the options that you can pass although you can pass them all or even none (and achieve the same as adding the embed).
In this example, we're saying that 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_.
**Note**: Autoplaying won't work on mobile devices as this is enforced by the devices to avoid wasting data. Also, you'll need to serve the slides from a local server (lots of options out there) or upload it to your server since serving from a file does not work for YouTube.