From c99a5ea0f2e3976a772da2bc89ebd7c565f06af1 Mon Sep 17 00:00:00 2001 From: Francisco Baio Dias Date: Fri, 30 Nov 2018 10:46:54 +0100 Subject: [PATCH] fix: check if MediaRecorder is available --- src/video-recorder.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video-recorder.js b/src/video-recorder.js index 5d59236..7bbf01b 100644 --- a/src/video-recorder.js +++ b/src/video-recorder.js @@ -108,7 +108,8 @@ export default class VideoRecorder extends Component { constructor (props) { super(props) - const isInlineRecordingSupported = !!window.MediaSource + const isInlineRecordingSupported = + !!window.MediaSource && !!window.MediaRecorder const isVideoInputSupported = isIOSSafari() this.state = {