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.
@@ -88,8 +88,6 @@ const Recorder = function (visuals, replay, defaultOptions = {}) {
88
88
  let recordingBufferLength
89
89
  let recordingBuffer
90
90
 
91
- const timeControlEnabled = Boolean(options.video.timeControl)
92
-
93
91
  function writeStream(buffer, opts) {
94
92
  if (stream) {
95
93
  if (stream.destroyed) {
@@ -992,7 +990,6 @@ const Recorder = function (visuals, replay, defaultOptions = {}) {
992
990
  if (!self.isPaused() && stream && ctx) {
993
991
  if (framesCount === 0) {
994
992
  self.emit(Events.SENDING_FIRST_FRAME)
995
- debug('Recorder: time control is', timeControlEnabled.toString())
996
993
  }
997
994
 
998
995
  framesCount++
@@ -1008,17 +1005,8 @@ const Recorder = function (visuals, replay, defaultOptions = {}) {
1008
1005
 
1009
1006
  bytesSum += recordingBufferLength
1010
1007
 
1011
- let frameBuffer
1012
-
1013
- if (timeControlEnabled) {
1014
- const timeControlBuffer = Buffer.from(
1015
- stringify({ frameNumber: framesCount, milliseconds: Date.now() })
1016
- )
1017
-
1018
- frameBuffer = Buffer.concat([recordingBuffer, timeControlBuffer])
1019
- } else {
1020
- frameBuffer = recordingBuffer
1021
- }
1008
+ const frameControlBuffer = Buffer.from(stringify({ frameNumber: framesCount }))
1009
+ const frameBuffer = Buffer.concat([recordingBuffer, frameControlBuffer])
1022
1010
 
1023
1011
  writeStream(frameBuffer, {
1024
1012
  frameNumber: framesCount,