From 552f448ccd4634441104dca29c20fa441d644dfc Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 30 May 2016 07:41:17 +0100 Subject: Seek rounding from 1 to 4 decimal places (fixes #242) --- src/js/plyr.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/js/plyr.js b/src/js/plyr.js index 1794afa1..1e5d2156 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -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) {} -- cgit v1.2.3