{"repo":"vimeo/player.js","free":true,"listed":false,"github":"https://github.com/vimeo/player.js","clone":"git clone https://github.com/vimeo/player.js.git","description":"Interact with and control an embedded Vimeo Player.","language":"JavaScript","stars":1486,"topics":["vimeo-player","player","video","vimeo","vimeo-player-api","embedded-vimeo-player"],"license":"MIT","category":"media-processing","readme_excerpt":"Vimeo Player API The Vimeo Player API allows you to interact with and control an embedded Vimeo Player. [!NOTE] We'd love to get your feedback about how you work with Player.js. Please take a few minutes to share your thoughts in our survey here. Installation You can install the Vimeo Player API through either npm: Alternatively, you can reference an up‐to‐date version on our CDN: Warning: when used with RequireJS it is required to load the script dynamically via the RequireJS load system. https://requirejs.org/docs/api.html#jsfiles Getting Started In order to control the Vimeo Player, you need a player to control. There are a few ways to get a player: Pre-existing player Already have a player on the page? Pass the element to the Vimeo.Player constructor and you’re ready to go. Create with a video id or url You can use the library to make the embed for you. All you need is an empty element and the video id or vimeo.com url (and optional embed options). [!NOTE] If the video privacy settings are \"Unlisted\", instead of providing an id property, you will need to provide the full video URL as a url property and include the h parameter. [!IMPORTANT] Embed options will only be used when creating a new embed, not when attaching to an existing iframe. Automatically with HTML attributes When the library loads, it will scan your page for elements with Vimeo attributes. Each element must have at least a data-vimeo-id or data-vimeo-url attribute in order for the embed to be created automa","default_branch":null,"files":null,"tree":[],"storefront":"/r/vimeo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vimeo/player.js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}