diff options
author | Sam Potts <sam@potts.es> | 2018-04-18 18:29:43 +1000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2018-04-18 18:29:43 +1000 |
commit | a97b08e8ea0022646eae005ce64a7edf8b26fb29 (patch) | |
tree | 5cbf4ec5cfcfb5c22d4ae8143ea52a7a888eb276 /src/js/plyr.js | |
parent | 88d766aeae6084dccd1903c2c358b8d1dfdfbce0 (diff) | |
download | plyr-a97b08e8ea0022646eae005ce64a7edf8b26fb29.tar.lz plyr-a97b08e8ea0022646eae005ce64a7edf8b26fb29.tar.xz plyr-a97b08e8ea0022646eae005ce64a7edf8b26fb29.zip |
ARIA and Vimeo fixes
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r-- | src/js/plyr.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index 181b4bf3..fe8049e1 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -452,7 +452,7 @@ class Plyr { } // Set - this.media.currentTime = parseFloat(targetTime.toFixed(4)); + this.media.currentTime = targetTime; // Logging this.debug.log(`Seeking to ${this.currentTime} seconds`); @@ -498,7 +498,7 @@ class Plyr { */ get duration() { // Faux duration set via config - const fauxDuration = parseInt(this.config.duration, 10); + const fauxDuration = parseFloat(this.config.duration); // True duration const realDuration = this.media ? Number(this.media.duration) : 0; |