Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

recordrtc

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

recordrtc - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

6

package.json
{
"name": "recordrtc",
"preferGlobal": true,
"version": "4.0.1",
"version": "4.0.2",
"author": {

@@ -31,8 +31,8 @@ "name": "Muaz Khan",

"bugs": {
"url": "https://github.com/muaz-khan/WebRTC-Experiment/issues",
"url": "https://github.com/muaz-khan/RecordRTC/issues",
"email": "muazkh@gmail.com"
},
"homepage": "https://www.webrtc-experiment.com/RecordRTC/",
"_id": "recordrtc@4.0.1",
"_id": "recordrtc@4.0.2",
"_from": "recordrtc@"
}

@@ -0,1 +1,60 @@

It is experimental repository for RecordRTC.js which means that every single update will be pushed to this repository until RecordRTC current version gets stable.
## Recent Changes?
<ol>
<li>
"save" method now accepts file-name optional parameter:
<pre>
recordRTC.save('file-name');
// or
mRecordRTC.save({
audio: 'audio-name',
video: 'video-name',
gif: 'gif-name'
});
</pre>
</li>
<li>
MRecordRTC is fixed to record audio+video in single stream in Firefox.
<pre>
// MRecordRTC auto sets "mRecordRTC.mediaType.audio=false"
// if MediaStream has both audio and video tracks
// it supports audio+video recording in single file for Firefox
mRecordRTC.mediaType = {
audio: true,
video: true
};
</pre>
</li>
<li>
"<code>save</code>" method has been added in <a href="https://github.com/muaz-khan/WebRTC-Experiment/tree/master/RecordRTC/MRecordRTC">MRecordRTC</a>:
<pre>
mRecordRTC.save();
// or save only audio stream
mRecordRTC.save({
audio: true
});
// or save audio and video streams
mRecordRTC.save({
audio: true,
video: true
});
</pre>
</li>
<li>
If you're recording GIF, you must link:
<pre>
https://cdn.webrtc-experiment.com/gif-recorder.js
</pre>
</li>
</ol>
=
## [RecordRTC](https://github.com/muaz-khan/WebRTC-Experiment/tree/master/RecordRTC): [WebRTC](https://www.webrtc-experiment.com/) audio/video recording / [Demo](https://www.webrtc-experiment.com/RecordRTC/) [![npm](https://img.shields.io/npm/v/recordrtc.svg)](https://npmjs.org/package/recordrtc) [![downloads](https://img.shields.io/npm/dm/recordrtc.svg)](https://npmjs.org/package/recordrtc)

@@ -2,0 +61,0 @@

@@ -1,2 +0,2 @@

// Last time updated at August 05, 2014, 08:32:23
// Last time updated at August 15, 2014, 08:32:23

@@ -7,2 +7,3 @@ // updates?

-. "save" method added in MRecordRTC.
-. "save" method accepts file-name.
*/

@@ -178,3 +179,3 @@

},
save: function () {
save: function (fileName) {
if (!mediaRecorder) return console.warn(WARNING);

@@ -187,3 +188,3 @@

hyperlink.target = '_blank';
hyperlink.download = (Math.round(Math.random() * 9999999999) + 888888888) + '.' + mediaRecorder.recordedBlob.type.split('/')[1];
hyperlink.download = (fileName || (Math.round(Math.random() * 9999999999) + 888888888)) + '.' + mediaRecorder.recordedBlob.type.split('/')[1];

@@ -435,11 +436,11 @@ var evt = new MouseEvent('click', {

if(args.audio && this.audioRecorder) {
this.audioRecorder.save();
if(!!args.audio && this.audioRecorder) {
this.audioRecorder.save(typeof args.audio == 'string' ? args.audio : '');
}
if(args.video && this.videoRecorder) {
this.videoRecorder.save();
if(!!args.video && this.videoRecorder) {
this.videoRecorder.save(typeof args.video == 'string' ? args.video : '');
}
if(args.gif && this.gifRecorder) {
this.gifRecorder.save();
if(!!args.gif && this.gifRecorder) {
this.gifRecorder.save(typeof args.gif == 'string' ? args.gif : '');
}

@@ -446,0 +447,0 @@ };

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc