Seek rounding from 1 to 4 decimal places (fixes #242)

This commit is contained in:
Sam
2016-05-30 07:41:17 +01:00
parent cb318dd6ad
commit 552f448ccd
6 changed files with 15 additions and 12 deletions

View File

@ -1,6 +1,6 @@
// ==========================================================================
// Plyr
// plyr.js v1.6.17
// plyr.js v1.6.18
// https://github.com/selz/plyr
// License: The MIT License (MIT)
// ==========================================================================
@ -44,7 +44,7 @@
displayDuration: true,
loadSprite: true,
iconPrefix: 'plyr',
iconUrl: 'https://cdn.plyr.io/1.6.17/plyr.svg',
iconUrl: 'https://cdn.plyr.io/1.6.18/plyr.svg',
clickToPlay: true,
hideControls: true,
showPosterOnEnd: false,
@ -1890,7 +1890,7 @@
// Set the current time
// Try/catch incase the media isn't set and we're calling seek() from source() and IE moans
try {
plyr.media.currentTime = targetTime.toFixed(1);
plyr.media.currentTime = targetTime.toFixed(4);
}
catch(e) {}