react-vimeo
Advanced tools
Comparing version 0.0.2 to 0.0.3
/* | ||
* React-Vimeo - React component to load video from Vimeo | ||
* @version v0.0.2 | ||
* @version v0.0.3 | ||
* @link https://github.com/freecodecamp/react-vimeo | ||
@@ -5,0 +5,0 @@ * @license MIT |
/* | ||
* React-Vimeo - React component to load video from Vimeo | ||
* @version v0.0.2 | ||
* @version v0.0.3 | ||
* @link https://github.com/freecodecamp/react-vimeo | ||
@@ -5,0 +5,0 @@ * @license MIT |
{ | ||
"name": "react-vimeo", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "React component to load video from Vimeo", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -59,9 +59,21 @@ # React Vimeo | ||
`<Video>` component: | ||
`<Vimeo>` component: | ||
Property | Type | Default | Required | Description | ||
-------- | ---- | ------- | -------- |----------- | ||
videoId | `String` | none | yes | The video ID | ||
onError | `Function` | noop | no | Callback function if the video can't be loaded | ||
className | string | 'vimeo' | no | className applied to wrapping div | ||
onCuechange | func | noop | no | called when the player que changes | ||
onError | func | noop | no | called if the video metadata (thumbnail) can't be loaded | ||
onFinish | func | noop | no | called when video completes | ||
onLoadProgress | func | noop | no | called when part of video has loaded | ||
onPause | func | noop | no | called when video is paused | ||
onPlay | func | noop | no | called when video is played | ||
onPlayProgress | func | noop | no | called when video play has progressed | ||
onReady | func | noop | no | called when video has loaded and is ready to play. other event functions will not be called before this one other than onError | ||
onSeek | func | noop | no | called when user seeks ahead in video | ||
videoId | string | none | yes | The vimeo ID | ||
Interactive api (play/pause actions, seek to `n`, etc..) to come in future versions | ||
## License | ||
@@ -68,0 +80,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
601161
83