Skip to content

Commit

Permalink
make blob available before updating timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra authored Jun 16, 2017
1 parent 8d83392 commit 34bb4c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/MediaStreamRecorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ function MediaStreamRecorder(mediaStream, config) {
mediaRecorder.ondataavailable = function(e) {
if (typeof config.timeSlice === 'number') {
if (e.data && e.data.size && e.data.size > 100) {
updateTimeStamp();
arrayOfBlobs.push(e.data);
updateTimeStamp();
}
return;
}
Expand Down

0 comments on commit 34bb4c8

Please sign in to comment.