mirror of
https://github.com/webslides/WebSlides.git
synced 2025-09-25 04:11:41 +02:00
Updated Plugin docs (markdown)
@@ -55,7 +55,9 @@ Example:
|
|||||||
<source src="https://webslides.tv/static/videos/peggy.mp4" type="video/mp4">
|
<source src="https://webslides.tv/static/videos/peggy.mp4" type="video/mp4">
|
||||||
</video>
|
</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.
|
||||||
|
|
||||||
|
**Note**: Autoplaying won't work on mobile devices as this is enforced by the devices to avoid wasting data.
|
||||||
|
|
||||||
## YouTube
|
## YouTube
|
||||||
|
|
||||||
@@ -73,4 +75,6 @@ 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