videomail-client 5.2.0 → 5.2.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/TODO.md CHANGED
@@ -8,10 +8,10 @@
8
8
  | src/js/wrappers/container.js | 334 | figure out how to fire dom's onload event again
9
9
  | src/js/wrappers/container.js | 335 | or how to run all the scripts over again
10
10
  | src/js/wrappers/optionsWrapper.js | 27 | fix this, it's not really an option
11
- | src/js/wrappers/visuals/recorder.js | 584 | in https://github.com/binarykitchen/videomail-client/issues/142
12
- | src/js/wrappers/visuals/recorder.js | 621 | retry with navigator.getUserMedia_() maybe?
13
- | src/js/wrappers/visuals/recorder.js | 761 | commented out because for some reasons server does not accept such a long
14
- | src/js/wrappers/visuals/recorder.js | 766 | consider removing this later or have it for debug=1 only?
11
+ | src/js/wrappers/visuals/recorder.js | 582 | in https://github.com/binarykitchen/videomail-client/issues/142
12
+ | src/js/wrappers/visuals/recorder.js | 619 | retry with navigator.getUserMedia_() maybe?
13
+ | src/js/wrappers/visuals/recorder.js | 759 | commented out because for some reasons server does not accept such a long
14
+ | src/js/wrappers/visuals/recorder.js | 764 | consider removing this later or have it for debug=1 only?
15
15
  | src/js/wrappers/visuals/userMedia.js | 309 | consider removing that if it's not the case anymore (for better performance)
16
16
  | gulpfile.js | 1 | write this in ES6 once i have figured out how to
17
17
  | gulpfile.js | 58 | fix this, so that it also works when not minified, this
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "5.2.0",
3
+ "version": "5.2.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": [
@@ -26004,7 +26004,7 @@ function wrappy (fn, cb) {
26004
26004
  },{}],345:[function(_dereq_,module,exports){
26005
26005
  module.exports={
26006
26006
  "name": "videomail-client",
26007
- "version": "5.2.0",
26007
+ "version": "5.2.1",
26008
26008
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
26009
26009
  "author": "Michael Heuberger <michael.heuberger@binarykitchen.com>",
26010
26010
  "contributors": [
@@ -30571,7 +30571,6 @@ var Recorder = function Recorder(visuals, replay) {
30571
30571
  var frame;
30572
30572
  var recordingBufferLength;
30573
30573
  var recordingBuffer;
30574
- var timeControlEnabled = Boolean(options.video.timeControl);
30575
30574
  function writeStream(buffer, opts) {
30576
30575
  if (stream) {
30577
30576
  if (stream.destroyed) {
@@ -31221,7 +31220,6 @@ var Recorder = function Recorder(visuals, replay) {
31221
31220
  if (!self.isPaused() && stream && ctx) {
31222
31221
  if (framesCount === 0) {
31223
31222
  self.emit(_events.default.SENDING_FIRST_FRAME);
31224
- debug('Recorder: time control is', timeControlEnabled.toString());
31225
31223
  }
31226
31224
  framesCount++;
31227
31225
  ctx.drawImage(userMedia.getRawVisuals(), 0, 0, canvas.width, canvas.height);
@@ -31231,16 +31229,10 @@ var Recorder = function Recorder(visuals, replay) {
31231
31229
  throw _videomailError.default.create('Failed to extract webcam data.', options);
31232
31230
  }
31233
31231
  bytesSum += recordingBufferLength;
31234
- var frameBuffer;
31235
- if (timeControlEnabled) {
31236
- var timeControlBuffer = Buffer.from((0, _safeJsonStringify.default)({
31237
- frameNumber: framesCount,
31238
- milliseconds: Date.now()
31239
- }));
31240
- frameBuffer = Buffer.concat([recordingBuffer, timeControlBuffer]);
31241
- } else {
31242
- frameBuffer = recordingBuffer;
31243
- }
31232
+ var frameControlBuffer = Buffer.from((0, _safeJsonStringify.default)({
31233
+ frameNumber: framesCount
31234
+ }));
31235
+ var frameBuffer = Buffer.concat([recordingBuffer, frameControlBuffer]);
31244
31236
  writeStream(frameBuffer, {
31245
31237
  frameNumber: framesCount,
31246
31238
  onFlushedCallback: onFlushed