videomail-client 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "author": "Michael Heuberger <michael.heuberger@binarykitchen.com>",
6
6
  "contributors": [
@@ -25842,7 +25842,7 @@ function wrappy (fn, cb) {
25842
25842
  },{}],341:[function(_dereq_,module,exports){
25843
25843
  module.exports={
25844
25844
  "name": "videomail-client",
25845
- "version": "3.0.0",
25845
+ "version": "3.0.1",
25846
25846
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
25847
25847
  "author": "Michael Heuberger <michael.heuberger@binarykitchen.com>",
25848
25848
  "contributors": [
@@ -32012,7 +32012,6 @@ var Recorder = function Recorder(visuals, replay) {
32012
32012
 
32013
32013
  framesCount++;
32014
32014
  ctx.drawImage(userMedia.getRawVisuals(), 0, 0, canvas.width, canvas.height);
32015
- var nanoseconds = Math.round(window.performance.now() * 1000000);
32016
32015
  recordingBuffer = frame.toBuffer();
32017
32016
  recordingBufferLength = recordingBuffer.length;
32018
32017
 
@@ -32023,7 +32022,7 @@ var Recorder = function Recorder(visuals, replay) {
32023
32022
  bytesSum += recordingBufferLength;
32024
32023
  var timeControlBuffer = Buffer.from((0, _safeJsonStringify.default)({
32025
32024
  frameNumber: framesCount,
32026
- timestamp: nanoseconds
32025
+ milliseconds: Date.now()
32027
32026
  }));
32028
32027
  var frameBuffer = Buffer.concat([recordingBuffer, timeControlBuffer]);
32029
32028
  writeStream(frameBuffer, {