0.0.8 • Published 1 year ago
aw-simple-video v0.0.8
Simple video web component.
Install
package.json
npm install aw-simple-video
Use
index.js
import { SimpleVideo } from "aw-simple-video";
new SimpleVideo();
Parameter | Type | Description |
---|---|---|
link | string | video link for vimeo or youtube |
poster | string | cover image to put when the video is paused or stopped |
controls | attributs boolean or string | the browser will display controls to allow the user to control video playback, volume, and pause |
autoplay | attributs boolean or string | indicates that the video should automatically start as soon as it can be played without being stopped by loading data |
loop | attributs boolean or string | indicates that the video should automatically start as soon as it can be played without being stopped by loading data |
muted | attributs boolean or string | If this attribute is used, the sound will be muted when launching the video. |
mp4 | string | mp4 file |
webm | string | webm file |
ogv | string | ogv file |
playtext | string | player button text |
shadowDom | boolean | Set false for override css and for put component in popin |
Example
<simple-video
link="https://www.youtube.com/watch?v=K2JUdZE69JQ"
controls
muted
shadowDom="false">
</simple-video>