diff --git a/package-lock.json b/package-lock.json index bfea31ea3..63641ec7e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "videojs-record", + "name": "videojs-record-e10", "version": "4.4.0", "lockfileVersion": 1, "requires": true, diff --git a/package.json b/package.json index 78ac1d295..9fe422660 100644 --- a/package.json +++ b/package.json @@ -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" }, @@ -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", diff --git a/src/js/engine/record-rtc.js b/src/js/engine/record-rtc.js index c258cc85e..af14d9d91 100644 --- a/src/js/engine/record-rtc.js +++ b/src/js/engine/record-rtc.js @@ -144,6 +144,10 @@ class RecordRTCEngine extends RecordEngine { } } + getSeekable(blob, callback) { + getSeekableBlob(blob, callback); + } + /** * Invoked when recording is stopped and resulting stream is available. * @@ -185,7 +189,6 @@ class RecordRTCEngine extends RecordEngine { } // inject file info this.addFileInfo(this.recordedData); - // notify listeners this.trigger(Event.RECORD_COMPLETE); }); diff --git a/src/js/plugins/ffmpeg-wasm-plugin.js b/src/js/plugins/ffmpeg-wasm-plugin.js index 29d89b295..6b4138b28 100644 --- a/src/js/plugins/ffmpeg-wasm-plugin.js +++ b/src/js/plugins/ffmpeg-wasm-plugin.js @@ -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();