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.0
  • ts4.3
  • ts4.4
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
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 19 Apr 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