Skip to content

Commit 8173852

Browse files
Egor Didenkond0ut
andauthored
feat(camera-tab): video recording (#755)
* feat(camera-tab): realization of video recording feat(camera-tab): added destroy media sources feat(camera-tab): carry on feat: added mobile support * feat(camera-tab): name of updated fields * feat(camera-tab): fallback for mimeType * feat(camera-tab): cancelAnimationFrame, after close modal --------- Co-authored-by: nd0ut <[email protected]>
1 parent 77cc167 commit 8173852

File tree

17 files changed

+959
-132
lines changed

17 files changed

+959
-132
lines changed

abstract/UploaderPublicApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export class UploaderPublicApi {
163163
fileInput.multiple = this.cfg.multiple;
164164
if (options.captureCamera) {
165165
fileInput.capture = this.cfg.cameraCapture;
166-
fileInput.accept = 'image/*';
166+
fileInput.accept = this.cfg.enableVideoRecording ? ['image/*', 'video/*'].join(',') : 'image/*';
167167
} else {
168168
fileInput.accept = accept;
169169
}

0 commit comments

Comments
 (0)