From df4d02559c33548efbae3a18bed7415bcf2f9cae Mon Sep 17 00:00:00 2001 From: Christian d'Heureuse Date: Tue, 15 Sep 2020 16:34:26 +0200 Subject: [PATCH] Set time position to display correct start image fixes #55 --- src/plugin.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugin.js b/src/plugin.js index b3be4ee..ec204df 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -77,6 +77,9 @@ const offset = function(options) { this._offsetStart = parseFloat(options.start || '0'); this._offsetEnd = parseFloat(options.end || '0'); this._restartBeginning = options.restart_beginning || false; + + this.currentTime(0); + this.getCache().initTime = 0; if (!Player.__super__ || !Player.__super__.__offsetInit) { Player.__super__ = {