UNPKG
@uppy/webcam
Version:
latest (5.1.0)
next (4.0.0-beta.9)
5.1.0
5.0.2
5.0.1
5.0.0
4.3.2
4.3.1
4.3.0
4.2.1
4.2.0
4.1.3
4.1.2
4.1.1
4.1.0
4.0.3
4.0.2
4.0.1
4.0.0
4.0.0-beta.9
4.0.0-beta.8
4.0.0-beta.7
4.0.0-beta.6
4.0.0-beta.5
4.0.0-beta.4
4.0.0-beta.3
4.0.0-beta.2
4.0.0-beta.1
3.4.2
3.4.1
3.4.0
3.3.6
3.3.5
3.3.4
3.3.3
3.3.2
3.3.1
3.3.0
3.2.1
3.2.0
3.1.0
3.0.0
3.0.0-beta.3
3.0.0-beta.2
3.0.0-beta.1
3.0.0-beta
2.2.2
2.2.1
2.2.0
2.1.0
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
2.0.0-alpha.0
1.8.13
1.8.12
1.8.11
1.8.10
1.8.9
1.8.8
1.8.7
1.8.6
1.8.5
1.8.4
1.8.3
1.8.2
1.8.1
1.8.0
1.7.0
1.6.11
1.6.10
1.6.9
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.0
1.3.1
1.3.0
1.2.0
1.1.0
1.0.2
1.0.1
1.0.0
0.30.5
0.30.4
0.30.3
0.30.2
0.30.1
0.30.0
0.29.1
0.29.0
0.28.0
0.27.4
0.27.3
0.27.2
0.27.1
0.27.0
0.26.0
Uppy plugin that takes photos or records videos using the device's camera.
uppy.io
transloadit/uppy
@uppy/webcam
/
src
/
supportsMediaRecorder.ts
10 lines
(9 loc)
•
281 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
export
default
function
supportsMediaRecorder
(
): boolean {
/* eslint-disable compat/compat */
return
(
typeof
MediaRecorder
===
'function'
&& !!
MediaRecorder
.
prototype
&&
typeof
MediaRecorder
.
prototype
.
start
===
'function'
)
/* eslint-enable compat/compat */
}