Vimeo Player SDK - Brown Surfing

Vimeo Player SDK

Posted on: April 28th, 2022


I was able to figure out the Vimeo SDK. It’s not hard once you get it.

All you have to do is assign a variable to the iframe then create that as the new Vimeo play and then you can use their events.

iframeVideo = document.querySelector(`.modal-content.${elemID} iframe`);

var player = new Vimeo.Player(iframeVideo);

player.play();

Remember to add their video script:

https://player.vimeo.com/api/player.js

Have any questions or comments? Write them below!


Leave a Reply

Your email address will not be published.