npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ssok-react-vimeo

v0.9.2

Published

Vimeo player component for React.

Downloads

5

Readme

@u-wave/react-vimeo

Vimeo player component for React.

Install - Usage - Demo - Props

Install

npm install --save @u-wave/react-vimeo

Usage

Demo - Demo source code

import Vimeo from '@u-wave/react-vimeo';

<Vimeo
  video="x2to0hs"
  autoplay
/>

Props

| Name | Type | Default | Description | |:-----|:-----|:-----|:-----| | video | number / string | | A Vimeo video ID or URL. | | id | string | | DOM ID for the player element. | | className | string | | CSS className for the player element. | | style | object | | Inline style for container element. | | width | number / string | | Width of the player element. | | height | number / string | | Height of the player element. | | paused | bool | | Pause the video. | | volume | number | | The playback volume as a number between 0 and 1. | | start | number | | The time in seconds at which to start playing the video. | | autopause | bool | true | Pause this video automatically when another one plays. | | autoplay | bool | false | Automatically start playback of the video. Note that this won’t work on some devices. | | showByline | bool | true | Show the byline on the video. | | color | string | | Specify the color of the video controls. Colors may be overridden by the embed settings of the video. (Ex: "ef2f9f") | | controls | bool | true | Hide all elements in the player (play bar, sharing buttons, etc). | | loop | bool | false | Play the video again when it reaches the end. | | showPortrait | bool | true | Show the portrait on the video. | | showTitle | bool | true | Show the title on the video. | | muted | bool | false | Starts in a muted state to help with autoplay | | background | bool | false | Starts in a background state with no controls to help with autoplay | | responsive | bool | false | Enable responsive mode and resize according to parent element (experimental) | | onReady | function | | Sent when the Vimeo player API has loaded. Receives the Vimeo player object in the first parameter. | | onError | function | | Sent when the player triggers an error. | | onPlay | function | | Triggered when the video plays. | | onPause | function | | Triggered when the video pauses. | | onEnd | function | | Triggered any time the video playback reaches the end. Note: when loop is turned on, the ended event will not fire. | | onTimeUpdate | function | | Triggered as the currentTime of the video updates. It generally fires every 250ms, but it may vary depending on the browser. | | onProgress | function | | Triggered as the video is loaded. Reports back the amount of the video that has been buffered. | | onSeeked | function | | Triggered when the player seeks to a specific time. An onTimeUpdate event will also be fired at the same time. | | onTextTrackChange | function | | Triggered when the active text track (captions/subtitles) changes. The values will be null if text tracks are turned off. | | onCueChange | function | | Triggered when the active cue for the current text track changes. It also fires when the active text track changes. There may be multiple cues active. | | onCuePoint | function | | Triggered when the current time hits a registered cue point. | | onVolumeChange | function | | Triggered when the volume in the player changes. Some devices do not support setting the volume of the video independently from the system volume, so this event will never fire on those devices. | | onLoaded | function | | Triggered when a new video is loaded in the player. |

Related

License

MIT