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

@types/vimeo__player

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/vimeo__player

TypeScript definitions for @vimeo/player

  • 2.18.3
  • ts4.5
  • ts4.6
  • ts4.7
  • ts4.8
  • ts4.9
  • ts5.0
  • ts5.1
  • ts5.2
  • ts5.3
  • ts5.4
  • ts5.5
  • ts5.6
  • ts5.7
  • ts5.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
169K
increased by6.99%
Maintainers
1
Weekly downloads
 
Created

What is @types/vimeo__player?

@types/vimeo__player provides TypeScript definitions for the Vimeo Player API, allowing developers to integrate Vimeo videos into their web applications with type safety and autocompletion in TypeScript.

What are @types/vimeo__player's main functionalities?

Creating a Vimeo Player

This feature allows you to create a new Vimeo player instance by specifying the HTML element ID and player options such as video ID and width.

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

Playing a Video

This feature allows you to programmatically play a video using the Vimeo Player API.

player.play().then(function() { console.log('The video is now playing'); }).catch(function(error) { console.error('An error occurred:', error); });

Pausing a Video

This feature allows you to programmatically pause a video using the Vimeo Player API.

player.pause().then(function() { console.log('The video is now paused'); }).catch(function(error) { console.error('An error occurred:', error); });

Getting Video Duration

This feature allows you to retrieve the duration of the video currently loaded in the player.

player.getDuration().then(function(duration) { console.log('The video duration is:', duration); }).catch(function(error) { console.error('An error occurred:', error); });

Listening to Events

This feature allows you to listen to various events emitted by the Vimeo player, such as 'play', 'pause', 'ended', etc.

player.on('play', function() { console.log('The video started playing'); });

Other packages similar to @types/vimeo__player

FAQs

Package last updated on 07 Nov 2023

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