Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"name": "videojs-record",
"version": "4.4.0",
"name": "@e10in/videojs-record",
"version": "4.4.1",
"description": "A video.js plugin for recording audio/video/image files.",
"author": "Collab",
"license": "MIT",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/collab-project/videojs-record/issues"
},
Expand All @@ -13,14 +12,13 @@
"style": "dist/css/videojs.record.css",
"sass": "src/css/videojs.record.scss",
"directories": {
"doc": "./docs",
"lib": "./src",
"example": "./examples",
"test": "./test"
"doc": "docs",
"example": "examples",
"test": "test"
},
"repository": {
"type": "git",
"url": "https://github.com/collab-project/videojs-record.git"
"url": "git+https://github.com/collab-project/videojs-record.git"
},
"scripts": {
"clean": "rimraf dist",
Expand Down
5 changes: 4 additions & 1 deletion src/js/engine/record-rtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ class RecordRTCEngine extends RecordEngine {
}
}

getSeekable(blob, callback) {
getSeekableBlob(blob, callback);
}

/**
* Invoked when recording is stopped and resulting stream is available.
*
Expand Down Expand Up @@ -185,7 +189,6 @@ class RecordRTCEngine extends RecordEngine {
}
// inject file info
this.addFileInfo(this.recordedData);

// notify listeners
this.trigger(Event.RECORD_COMPLETE);
});
Expand Down
6 changes: 5 additions & 1 deletion src/js/plugins/ffmpeg-wasm-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,16 @@ class FFmpegWasmEngine extends ConvertEngine {
if (this.pluginLibraryOptions.outputType === undefined) {
throw new Error('no outputType specified!');
}
if (this.pluginLibraryOptions.progress !== undefined && typeof(this.pluginLibraryOptions.progress) !=='function') { /*validate progess value*/
throw new Error('progress should be a function!');
}
this.outputType = this.pluginLibraryOptions.outputType;

const {version, createFFmpeg, fetchFile} = FFmpeg;
const ffmpeg = createFFmpeg({
corePath: this.convertWorkerURL,
log: this.debug
log: this.debug,
progress: this.pluginLibraryOptions.progress /*include this to show encoding progress for client*/
});
// save timestamp
const timestamp = new Date();
Expand Down