0.0.8 • Published 1 year ago

aw-simple-video v0.0.8

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
1 year ago

Simple video web component.

Install

package.json

npm install aw-simple-video

Use

index.js

import { SimpleVideo } from "aw-simple-video";
new SimpleVideo();
ParameterTypeDescription
linkstringvideo link for vimeo or youtube
posterstringcover image to put when the video is paused or stopped
controlsattributs boolean or stringthe browser will display controls to allow the user to control video playback, volume, and pause
autoplayattributs boolean or stringindicates that the video should automatically start as soon as it can be played without being stopped by loading data
loopattributs boolean or stringindicates that the video should automatically start as soon as it can be played without being stopped by loading data
mutedattributs boolean or stringIf this attribute is used, the sound will be muted when launching the video.
mp4stringmp4 file
webmstringwebm file
ogvstringogv file
playtextstringplayer button text
shadowDombooleanSet 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>
0.0.8

1 year ago

0.0.7

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.6

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago