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 5.4.5 to 5.4.6

2

bower.json
{
"name": "recordrtc",
"version": "5.4.5",
"version": "5.4.6",
"authors": [

@@ -5,0 +5,0 @@ {

{
"name": "recordrtc",
"preferGlobal": false,
"version": "5.4.5",
"version": "5.4.6",
"author": {

@@ -44,2 +44,5 @@ "name": "Muaz Khan",

"grunt-contrib-concat": "0.5.1",
"grunt-contrib-clean": "0.6.0",
"grunt-contrib-copy": "0.8.2",
"grunt-replace": "0.11.0",
"grunt-contrib-jshint": "0.11.3",

@@ -46,0 +49,0 @@ "grunt-contrib-uglify": "0.11.0",

@@ -233,4 +233,4 @@ # RecordRTC: WebRTC JavaScript Library for Audio+Video+Screen Recording

```html
<!-- use 5.4.5 or any other version -->
<script src="https://github.com/muaz-khan/RecordRTC/releases/download/5.4.5/RecordRTC.js"></script>
<!-- use 5.4.6 or any other version -->
<script src="https://github.com/muaz-khan/RecordRTC/releases/download/5.4.6/RecordRTC.js"></script>
```

@@ -321,2 +321,14 @@

You can pass `options` object over `startRecording` method as well:
```javascript
var recordRTC = RecordRTC(stream);
var options = {
recorderType: MediaStreamRecorder,
mimeType: 'video/webm\;codecs=vp9'
};
recordRTC.startRecording(options);
```
* `type` accepts `video` or `audio` or `canvas` or `gif`

@@ -445,2 +457,61 @@ * `mimeType` accepts [all these values](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/mimeType)

## `onStateChanged`
Use this method to detect status of the recording:
```javascript
recorder = RecordRTC(stream, {
type: 'video',
onStateChanged: function(state) {
alert('Current recorder status: ' + state);
}
});
recorder.startRecording();
```
## `state`
Use this property to detect status of the recording:
```javascript
recorder = RecordRTC(stream, {
type: 'video'
});
alert('Current recorder status: ' + recorder.state);
recorder.startRecording();
alert('Current recorder status: ' + recorder.state);
recorder.stopRecording(function() {
alert('Current recorder status: ' + recorder.state);
});
```
You can even use `getState` method:
```javascript
alert('Current recorder status: ' + recorder.getState());
```
## `version`
Detect current RecordRTC version:
```javascript
recorder = RecordRTC(stream, {
type: 'video'
});
alert('Current recorder version: ' + recorder.version);
```
You can even use `RecordRTC.version`:
```javascript
alert('Current recorder version: ' + RecordRTC.version);
```
## Echo Issues

@@ -447,0 +518,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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