Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@vimeo/player

Package Overview
Dependencies
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vimeo/player

Interact with and control an embedded Vimeo Player.


Version published
Weekly downloads
215K
decreased by-16.81%
Maintainers
4
Weekly downloads
 
Created

What is @vimeo/player?

@vimeo/player is an npm package that provides a simple way to embed and control Vimeo videos in your web applications. It offers a range of functionalities including video playback control, event handling, and customization options.

What are @vimeo/player's main functionalities?

Video Playback Control

This feature allows you to control video playback, such as playing, pausing, and stopping the video. The code sample demonstrates how to create a new Vimeo player instance and play a video.

const player = new Vimeo.Player('handstick', { id: 19231868, width: 640 });
player.play().then(function() {
  // the video was played
}).catch(function(error) {
  // an error occurred
});

Event Handling

This feature allows you to handle various events such as play, pause, and ended. The code sample demonstrates how to listen for the 'play' event and execute a callback function when the event occurs.

const player = new Vimeo.Player('handstick', { id: 19231868, width: 640 });
player.on('play', function() {
  console.log('Played the video!');
});

Customization Options

This feature allows you to customize the player with various options such as loop, autoplay, and width. The code sample demonstrates how to create a new Vimeo player instance with custom options.

const player = new Vimeo.Player('handstick', { id: 19231868, width: 640, loop: true, autoplay: true });

Other packages similar to @vimeo/player

Keywords

FAQs

Package last updated on 20 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc