Skip to content

Commit

Permalink
fix: check if MediaRecorder is available
Browse files Browse the repository at this point in the history
  • Loading branch information
fbaiodias committed Nov 30, 2018
1 parent 845be1b commit c99a5ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video-recorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit c99a5ea

Please sign in to comment.