mse-audio-wrapper
Advanced tools
Comparing version 1.4.12 to 1.4.13
{ | ||
"name": "mse-audio-wrapper", | ||
"version": "1.4.12", | ||
"version": "1.4.13", | ||
"description": "Library to enable Media Source Extensions API playback for unsupported audio containers and raw codecs", | ||
@@ -47,7 +47,7 @@ "main": "src/MSEAudioWrapper.js", | ||
"dependencies": { | ||
"codec-parser": "2.4.2" | ||
"codec-parser": "2.4.3" | ||
}, | ||
"devDependencies": { | ||
"prettier": "^2.8.7" | ||
"prettier": "^3.0.1" | ||
} | ||
} |
@@ -149,3 +149,3 @@ /* Copyright 2020-2021 Ethan Halsall | ||
(acc, val) => acc + (val.length === undefined ? 1 : val.length), | ||
0 | ||
0, | ||
); | ||
@@ -152,0 +152,0 @@ } else { |
@@ -157,3 +157,3 @@ /* Copyright 2020-2021 Ethan Halsall | ||
contents: header.audioSpecificConfig, | ||
}) | ||
}), | ||
); | ||
@@ -341,3 +341,3 @@ } | ||
? frames.map(({ data, header }) => | ||
Box.getUint32(data.length - header.length) | ||
Box.getUint32(data.length - header.length), | ||
) | ||
@@ -344,0 +344,0 @@ : frames.map(({ data }) => Box.getUint32(data.length)); |
@@ -71,3 +71,3 @@ /* Copyright 2020-2021 Ethan Halsall | ||
logError( | ||
`EBML Variable integer must be a number, instead received ${number}` | ||
`EBML Variable integer must be a number, instead received ${number}`, | ||
); | ||
@@ -74,0 +74,0 @@ throw new Error(MSE_AUDIO_WRAPPER + ": Unable to encode WEBM"); |
@@ -33,3 +33,3 @@ /* Copyright 2020-2021 Ethan Halsall | ||
contents: EBML.getUint32( | ||
Math.round(header.preSkip * this._timestampScale) | ||
Math.round(header.preSkip * this._timestampScale), | ||
), | ||
@@ -85,3 +85,3 @@ }), // OPUS codec delay | ||
contents: EBML.getUint32( | ||
Math.floor(this._timestampScale) // Base timestamps on sample rate vs. milliseconds https://www.matroska.org/technical/notes.html#timestamps | ||
Math.floor(this._timestampScale), // Base timestamps on sample rate vs. milliseconds https://www.matroska.org/technical/notes.html#timestamps | ||
), | ||
@@ -145,3 +145,3 @@ }), | ||
], | ||
}) | ||
}), | ||
), | ||
@@ -148,0 +148,0 @@ ], |
@@ -103,4 +103,4 @@ /* Copyright 2020-2021 Ethan Halsall | ||
[...this._codecParser.parseChunk(chunk)].flatMap( | ||
(frame) => frame.codecFrames || frame | ||
) | ||
(frame) => frame.codecFrames || frame, | ||
), | ||
); | ||
@@ -107,0 +107,0 @@ } else if (Array.isArray(chunk)) { |
@@ -33,3 +33,3 @@ /* Copyright 2020-2021 Ethan Halsall | ||
MSE_AUDIO_WRAPPER, | ||
messages.reduce((acc, message) => acc + "\n " + message, "") | ||
messages.reduce((acc, message) => acc + "\n " + message, ""), | ||
); | ||
@@ -36,0 +36,0 @@ }; |
63017
+ Addedcodec-parser@2.4.3(transitive)
- Removedcodec-parser@2.4.2(transitive)
Updatedcodec-parser@2.4.3