mirror of
https://github.com/webslides/WebSlides.git
synced 2025-09-25 20:29:36 +02:00
Updated Plugin docs (markdown)
@@ -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.
|
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
|
||||||
|
|
||||||
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.
|
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).
|
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_.
|
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.
|
Reference in New Issue
Block a user