@dreamworld/dw-video
v1.2.13
Published
A WebComponent to show zoomable video on documentation & blog sites
Readme
dw-video
A WebComponent to show a video thumbnail on documentation & blog sites.
Behaviours
- Currntly support only Vimeo video.
- Auto compute height based on width css style.
- On thumbnail click, open Vimeo video in new tab.
- If you want to show Vimeo actual video instead of a thumbnail then set the
inlineproperty as atrue.
Examples
Default Examples
<dw-video src='https://player.vimeo.com/video/313303279'> </dw-video>dw-video { width: 500px; }Inline Video
<dw-video inline src='https://player.vimeo.com/video/313303279'> </dw-video>dw-video { width: 500px; }
Properties
| Property | Attribute | Type | Default | Description |
|-----------------------|-----------------|-----------|---------|--------------------------------------------------|
| inline | inline | boolean | | If true then shows a inline vimeo video, Otherwise shows a viemo video thumbnail. |
| src | src | string | | Video path/source.It should be vimeo video path e.g. https://player.vimeo.com/video/313303279. |
| autoScrollIntoViewport | auto-scroll-into-viewport | boolean | false | If true and autoplay is false then scrolls the video into viewport on play. |
Events
| Event | Description |
|----------|--------------------------------------------------|
| loaded | when video thumbnail/inline-video is successfully loaded. |
