From c0bc65cc52ac893b4bd8b250b9a4c4a886843375 Mon Sep 17 00:00:00 2001 From: Matthew Dapena-Tretter Date: Wed, 25 Aug 2021 15:08:18 -0700 Subject: [PATCH] Fix Chrome seeking issues with files produced by opus-recorder --- src/encoderWorker.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/encoderWorker.js b/src/encoderWorker.js index 0a022ea..ca42555 100644 --- a/src/encoderWorker.js +++ b/src/encoderWorker.js @@ -324,6 +324,8 @@ if (typeof registerProcessor === 'function') { case 'getHeaderPages': this.postPage(this.encoder.generateIdPage()); this.postPage(this.encoder.generateCommentPage()); + // Match the pre-skip. See chris-rudmin/opus-recorder#248 + this.granulePosition = 3840; break; case 'done':