Skip to content

Commit f9093a2

Browse files
Disabling setting seek property on a delayed sound
1 parent 81e8542 commit f9093a2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ Object.defineProperty(HTML5AudioSound.prototype, 'seek', {
216216
}
217217
},
218218
set: function (value) {
219+
if (this.startTime > 0) {
220+
return;
221+
}
219222
if (this.isPlaying || this.isPaused) {
220223
value = Math.min(Math.max(0, value), this.duration);
221224
if (this.isPlaying) {

0 commit comments

Comments
 (0)