Skip to content

Commit 0efa048

Browse files
Taking into account marker start time when calculating seek
1 parent f941cab commit 0efa048

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ Object.defineProperty(HTML5AudioSound.prototype, 'volume', {
273273
Object.defineProperty(HTML5AudioSound.prototype, 'seek', {
274274
get: function () {
275275
if (this.isPlaying) {
276-
return this.audio.currentTime;
276+
return this.audio.currentTime -
277+
(this.currentMarker ? this.currentMarker.start : 0);
277278
}
278279
else if (this.isPaused) {
279280
return this.currentConfig.seek;

0 commit comments

Comments
 (0)