@dreamworld/dw-video
v1.2.12
Published
A WebComponent to show zoomable video on documentation & blog sites
Downloads
50
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
inline
property 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. |
Events
| Event | Description |
|----------|--------------------------------------------------|
| loaded
| when video thumbnail/inline-video is successfully loaded. |