Skip to content

Commit

Permalink
Fixed #529 use this: require('recordrtc').getSeekableBlob;
Browse files Browse the repository at this point in the history
let RecordRTC = require('recordrtc');
RecordRTC.getSeekableBlob(originalBlob, callback);
  • Loading branch information
muaz-khan committed Jun 13, 2019
1 parent 528e165 commit 1c83216
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 2,126 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -7,3 +7,5 @@ bower_components
.DS_Store

!RecordRTC-to-Nodejs/node_modules

package-lock.json
18 changes: 13 additions & 5 deletions RecordRTC.js
@@ -1,9 +1,9 @@
'use strict';

// Last time updated: 2019-02-06 11:32:40 AM UTC
// Last time updated: 2019-06-13 2:08:18 AM UTC

// ________________
// RecordRTC v5.5.4
// RecordRTC v5.5.5

// Open-Sourced: https://github.com/muaz-khan/RecordRTC

Expand Down Expand Up @@ -773,7 +773,7 @@ function RecordRTC(mediaStream, config) {
* @example
* alert(recorder.version);
*/
version: '5.5.4'
version: '5.5.5'
};

if (!this) {
Expand All @@ -791,7 +791,7 @@ function RecordRTC(mediaStream, config) {
return returnObject;
}

RecordRTC.version = '5.5.4';
RecordRTC.version = '5.5.5';

if (typeof module !== 'undefined' /* && !!module.exports*/ ) {
module.exports = RecordRTC;
Expand Down Expand Up @@ -1913,6 +1913,14 @@ function getSeekableBlob(inputBlob, callback) {
fileReader.readAsArrayBuffer(inputBlob);
}

if (typeof RecordRTC !== 'undefined') {
RecordRTC.invokeSaveAsDialog = invokeSaveAsDialog;
RecordRTC.getTracks = getTracks;
RecordRTC.getSeekableBlob = getSeekableBlob;
RecordRTC.bytesToSize = bytesToSize;
RecordRTC.isElectron = isElectron;
}

// __________ (used to handle stuff like http://goo.gl/xmE5eg) issue #129
// Storage.js

Expand Down Expand Up @@ -2015,7 +2023,7 @@ function MediaStreamRecorder(mediaStream, config) {
}

if (typeof MediaRecorder === 'undefined') {
throw 'Your browser does not supports Media Recorder API. Please try other modules e.g. WhammyRecorder or StereoAudioRecorder.';
throw 'Your browser does not support the Media Recorder API. Please try other modules e.g. WhammyRecorder or StereoAudioRecorder.';
}

config = config || {
Expand Down
10 changes: 5 additions & 5 deletions RecordRTC.min.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions dev/Cross-Browser-Declarations.js
Expand Up @@ -265,3 +265,11 @@ function getSeekableBlob(inputBlob, callback) {
};
fileReader.readAsArrayBuffer(inputBlob);
}

if (typeof RecordRTC !== 'undefined') {
RecordRTC.invokeSaveAsDialog = invokeSaveAsDialog;
RecordRTC.getTracks = getTracks;
RecordRTC.getSeekableBlob = getSeekableBlob;
RecordRTC.bytesToSize = bytesToSize;
RecordRTC.isElectron = isElectron;
}
2 changes: 2 additions & 0 deletions npm-test.js
Expand Up @@ -9,6 +9,8 @@ catch(e) {
RecordRTC = require('./RecordRTC.js');
}

console.log('RecordRTC => ', Object.keys(RecordRTC));

var recorder = RecordRTC({}, {
type: 'video',
recorderType: RecordRTC.WhammyRecorder
Expand Down

0 comments on commit 1c83216

Please sign in to comment.