Restore as float (fixes #828)
This commit is contained in:
parent
f998b996fa
commit
05b8e8a6e0
10
dist/plyr.js
vendored
10
dist/plyr.js
vendored
@ -6302,6 +6302,12 @@ var source = {
|
||||
// License: The MIT License (MIT)
|
||||
// ==========================================================================
|
||||
|
||||
// Private properties
|
||||
// TODO: Use a WeakMap for private globals
|
||||
// const globals = new WeakMap();
|
||||
|
||||
// Plyr instance
|
||||
|
||||
var Plyr = function () {
|
||||
function Plyr(target, options) {
|
||||
var _this = this;
|
||||
@ -7098,8 +7104,8 @@ var Plyr = function () {
|
||||
targetTime = this.duration;
|
||||
}
|
||||
|
||||
// Set
|
||||
this.media.currentTime = targetTime.toFixed(4);
|
||||
// Set with slightly reduced accuracy
|
||||
this.media.currentTime = parseFloat(targetTime.toFixed(4));
|
||||
|
||||
// Logging
|
||||
this.debug.log('Seeking to ' + this.currentTime + ' seconds');
|
||||
|
2
dist/plyr.js.map
vendored
2
dist/plyr.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.min.js
vendored
2
dist/plyr.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.min.js.map
vendored
2
dist/plyr.min.js.map
vendored
File diff suppressed because one or more lines are too long
10
dist/plyr.polyfilled.js
vendored
10
dist/plyr.polyfilled.js
vendored
@ -12200,6 +12200,12 @@ var source = {
|
||||
// License: The MIT License (MIT)
|
||||
// ==========================================================================
|
||||
|
||||
// Private properties
|
||||
// TODO: Use a WeakMap for private globals
|
||||
// const globals = new WeakMap();
|
||||
|
||||
// Plyr instance
|
||||
|
||||
var Plyr$1 = function () {
|
||||
function Plyr(target, options) {
|
||||
var _this = this;
|
||||
@ -12996,8 +13002,8 @@ var Plyr$1 = function () {
|
||||
targetTime = this.duration;
|
||||
}
|
||||
|
||||
// Set
|
||||
this.media.currentTime = targetTime.toFixed(4);
|
||||
// Set with slightly reduced accuracy
|
||||
this.media.currentTime = parseFloat(targetTime.toFixed(4));
|
||||
|
||||
// Logging
|
||||
this.debug.log('Seeking to ' + this.currentTime + ' seconds');
|
||||
|
2
dist/plyr.polyfilled.js.map
vendored
2
dist/plyr.polyfilled.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.polyfilled.min.js
vendored
2
dist/plyr.polyfilled.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.polyfilled.min.js.map
vendored
2
dist/plyr.polyfilled.min.js.map
vendored
File diff suppressed because one or more lines are too long
@ -425,7 +425,7 @@ class Plyr {
|
||||
}
|
||||
|
||||
// Set
|
||||
this.media.currentTime = targetTime.toFixed(4);
|
||||
this.media.currentTime = parseFloat(targetTime.toFixed(4));
|
||||
|
||||
// Logging
|
||||
this.debug.log(`Seeking to ${this.currentTime} seconds`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user