Vimeo: Assure state is updated with autoplay (fixes #1016)

This commit is contained in:
Albin Larsson 2018-06-10 23:59:59 +02:00
parent 76bb299c68
commit d3e98eb27e

View File

@ -312,6 +312,14 @@ const vimeo = {
});
player.embed.on('loaded', () => {
// Assure state and events are updated on autoplay
player.embed.getPaused().then(paused => {
assurePlaybackState.call(player, !paused);
if (!paused) {
utils.dispatchEvent.call(player, player.media, 'playing');
}
});
if (utils.is.element(player.embed.element) && player.supported.ui) {
const frame = player.embed.element;