Updated data attributes to data-plyr namespace. Speed menu fixes

This commit is contained in:
Sam Potts
2017-11-23 12:57:43 +11:00
parent 7382553a78
commit de6f0f1b77
20 changed files with 365 additions and 429 deletions

View File

@ -208,11 +208,6 @@ const vimeo = {
player.config.autopause = state;
});
// Get available speeds
if (player.config.controls.includes('settings') && player.config.settings.includes('speed')) {
controls.setSpeedMenu.call(player);
}
// Get title
player.embed.getVideoTitle().then(title => {
player.config.title = title;

View File

@ -143,8 +143,7 @@ const youtube = {
case 101:
case 150:
detail.message =
'The owner of the requested video does not allow it to be played in embedded players.';
detail.message = 'The owner of the requested video does not allow it to be played in embedded players.';
break;
default:
@ -282,9 +281,7 @@ const youtube = {
});
// Get available speeds
if (player.config.controls.includes('settings') && player.config.settings.includes('speed')) {
controls.setSpeedMenu.call(player, instance.getAvailablePlaybackRates());
}
player.options.speed = instance.getAvailablePlaybackRates();
// Set the tabindex to avoid focus entering iframe
if (player.supported.ui) {