vimeo-player-api-loader
v1.0.0
Published
Vimeo JS Player API loader.
Downloads
406
Readme
vimeo-player-api-loader
Wrapper for loading Vimeo Player API JS. Inspired by youtube-iframe.
Install
npm install vimeo-player-api-loader
yarn add vimeo-player-api-loader
Usage
import VimeoPlayerApiLoader from 'vimeo-player-api-loader';
VimeoPlayerApiLoader.load((Vimeo) => {
const iframe = document.querySelector('iframe');
const player = new Vimeo.Player(iframe);
});