UNPKG
@uppy/audio
Version:
latest (3.1.0)
next (2.0.0-beta.7)
3.1.0
3.0.1
3.0.0
3.0.0-beta
2.2.2
2.2.1
2.2.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.2
2.0.1
2.0.0
2.0.0-beta.7
2.0.0-beta.6
2.0.0-beta.5
2.0.0-beta.4
2.0.0-beta.3
2.0.0-beta.2
2.0.0-beta.1
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
1.0.0-beta.2
1.0.0-beta.1
0.3.3
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
Uppy plugin that records audio using the device’s microphone.
uppy.io
transloadit/uppy
@uppy/audio
/
src
/
supportsMediaRecorder.ts
9 lines
(8 loc)
•
249 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
export
default
function
supportsMediaRecorder
(
): boolean {
/* eslint-disable compat/compat */
return
(
typeof
MediaRecorder
===
'function'
&&
typeof
MediaRecorder
.
prototype
?.
start
===
'function'
)
/* eslint-enable compat/compat */
}