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.
|
@@ -995,8 +995,6 @@ const Recorder = function (visuals, replay, defaultOptions = {}) {
|
|
|
995
995
|
|
|
996
996
|
ctx.drawImage(userMedia.getRawVisuals(), 0, 0, canvas.width, canvas.height)
|
|
997
997
|
|
|
998
|
-
const nanoseconds = Math.round(window.performance.now() * 1000000)
|
|
999
|
-
|
|
1000
998
|
recordingBuffer = frame.toBuffer()
|
|
1001
999
|
recordingBufferLength = recordingBuffer.length
|
|
1002
1000
|
|
|
@@ -1007,7 +1005,7 @@ const Recorder = function (visuals, replay, defaultOptions = {}) {
|
|
|
1007
1005
|
bytesSum += recordingBufferLength
|
|
1008
1006
|
|
|
1009
1007
|
const timeControlBuffer = Buffer.from(
|
|
1010
|
-
stringify({ frameNumber: framesCount,
|
|
1008
|
+
stringify({ frameNumber: framesCount, milliseconds: Date.now() })
|
|
1011
1009
|
)
|
|
1012
1010
|
const frameBuffer = Buffer.concat([recordingBuffer, timeControlBuffer])
|
|
1013
1011
|
|