catch error in setPlaybackRate on Vimeo

This commit is contained in:
Hugues 2020-02-20 12:57:47 +00:00
parent 977a8393f8
commit 0cf5d25a7f

View File

@ -204,6 +204,9 @@ const vimeo = {
player.embed.setPlaybackRate(input).then(() => {
speed = input;
triggerEvent.call(player, player.media, 'ratechange');
}).catch(() => {
// Cannot set Playback Rate, Video is probably not on Pro account
player.options.speed = [1];
});
},
});