audio-recorder-polyfill
Advanced tools
Comparing version 0.3.6 to 0.3.7
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
### 0.3.6 | ||
## 0.3.7 | ||
* Fixed TypeScript support (by Michal Dabski). | ||
## 0.3.6 | ||
* Fix echo bug in Safari (by @sseppola). | ||
@@ -6,0 +9,0 @@ |
@@ -1,2 +0,2 @@ | ||
import waveEncoder from './wave-encoder/index.js' | ||
let waveEncoder = require('./wave-encoder') | ||
@@ -99,3 +99,4 @@ let AudioContext = window.AudioContext || window.webkitAudioContext | ||
recorder.encoder.postMessage([ | ||
'encode', e.inputBuffer.getChannelData(0) | ||
'encode', | ||
e.inputBuffer.getChannelData(0) | ||
]) | ||
@@ -284,2 +285,2 @@ } | ||
export default MediaRecorder | ||
module.exports = MediaRecorder |
@@ -1,2 +0,2 @@ | ||
export default () => { | ||
module.exports = () => { | ||
importScripts( | ||
@@ -3,0 +3,0 @@ 'https://cdnjs.cloudflare.com/ajax/libs/lamejs/1.2.0/lame.min.js' |
{ | ||
"name": "audio-recorder-polyfill", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "MediaRecorder polyfill to record audio in Edge and Safari", | ||
@@ -20,24 +20,3 @@ "keywords": [ | ||
"license": "MIT", | ||
"repository": "ai/audio-recorder-polyfill", | ||
"type": "module", | ||
"main": "index.cjs", | ||
"module": "index.js", | ||
"react-native": "index.js", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"require": "./index.cjs", | ||
"import": "./index.js" | ||
}, | ||
"./mpeg-encoder/package.json": "./mpeg-encoder/package.json", | ||
"./mpeg-encoder": { | ||
"require": "./mpeg-encoder/index.cjs", | ||
"import": "./mpeg-encoder/index.js" | ||
}, | ||
"./wave-encoder/package.json": "./wave-encoder/package.json", | ||
"./wave-encoder": { | ||
"require": "./wave-encoder/index.cjs", | ||
"import": "./wave-encoder/index.js" | ||
} | ||
} | ||
} | ||
"repository": "ai/audio-recorder-polyfill" | ||
} |
@@ -51,2 +51,8 @@ # Audio Recorder Polyfill | ||
Files recorded without the polyfill will not be playable on Safari, | ||
it is highly recommended to convert it to MP3 on the back-end | ||
of your application. If that’s not an option you can use the polyfill | ||
in all browsers to force the audio to be converted to the right format | ||
with the price of client’s performance. | ||
```diff | ||
@@ -80,3 +86,2 @@ entry: { | ||
## ES Modules | ||
@@ -83,0 +88,0 @@ |
// Copied from https://github.com/chris-rudmin/Recorderjs | ||
export default () => { | ||
module.exports = () => { | ||
let BYTES_PER_SAMPLE = 2 | ||
@@ -5,0 +5,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
245
19023
8
366
No