Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Commit 5d90875

Browse files
committed
chore(package.json): publish new version to npm
1 parent ac60dd1 commit 5d90875

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15822,7 +15822,7 @@ var MicRecorder = function () {
1582215822
// the begining of the recording. It also helps to remove the mouse
1582315823
// "click" sound from the output mp3 file.
1582415824
startRecordingAt: 300,
15825-
deviceId: 'default'
15825+
deviceId: null
1582615826
};
1582715827

1582815828
this.activeStream = null;
@@ -15916,7 +15916,7 @@ var MicRecorder = function () {
1591615916
this.config.sampleRate = this.context.sampleRate;
1591715917
this.lameEncoder = new Encoder(this.config);
1591815918

15919-
var audio = { deviceId: { exact: this.config.deviceId } };
15919+
var audio = this.config.deviceId ? { deviceId: { exact: this.config.deviceId } } : true;
1592015920

1592115921
return new Promise(function (resolve, reject) {
1592215922
navigator.mediaDevices.getUserMedia({ audio: audio }).then(function (stream) {

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mic-recorder-to-mp3",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "Record your microphone audio input and get an audio/mp3 ouput buffer/blob.",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)