I have had a problem recently where I cannot autoplay / play two videos from vimeo when they are on the same page using Plyr, although they work for the youtube videos.
Here is a snippet
jQuery(document).ready(function($) {
var $videoComponent = $('.jsVideoComponent');
if ($videoComponent.length) {
$videoComponent.each(function(index) {
var $thisComponent = $(this);
console.log($thisComponent);
var $thisVideo = $thisComponent.find('.jsVideo');
// control video
var video = plyr.setup($thisComponent.find('.jsVideo').get());
var $button = $thisComponent.find('.jsVideoBtn');
$button.on('click', function() {
console.log($thisComponent);
$thisComponent.find('.plyr').show();
video[0].toggleFullscreen();
video[0].play();
});
video[0].on('exitfullscreen', function() {
$thisComponent.find('.plyr').hide();
video[0].stop();
});
});
}
});