sampotts / plyr

A simple HTML5, YouTube and Vimeo player
https://plyr.io
MIT License
26.6k stars 2.93k forks source link

Option to disable autopause functionality for Vimeo. #708

Closed mthomas-io closed 6 years ago

mthomas-io commented 7 years ago

Expected behaviour

Option in config to disable Vimeo's 'autopause' functionality. Autopause is on by default, while disabling autopause would make it possible to view multiple Vimeo video's simultaneously.

Actual behaviour

Autopause option is not set in Vimeo configuration and thus only one video plays at a time.

Environment

Players affected:

Steps to reproduce

Relevant links

An example of what autopause is can be seen here (not using plyr): http://tube.merkulov.design/autopause.html

bleepsandblops commented 7 years ago

If that can help in the meantime, I get around it with:

var vimeoplayers = plyr.setup();
vimeoplayers.forEach(function (player) {
  player.on('ready', function (e) {
    player.getEmbed().setAutopause(false);
  }) 
})
sampotts commented 6 years ago

This is in place in v3 which will be released soon.

sampotts commented 6 years ago

Closing this one as I think it's fixed but feel free to re-open if not solved in v3 👍